Commit graph

11 commits

Author SHA1 Message Date
gfyoung
dfbe5ce435 Enable frozen string literals for app/workers/*.rb 2018-06-27 07:23:28 +00:00
Zeger-Jan van de Weg
c6edae3887
Load commit in batches for pipelines#index
Uses `list_commits_by_oid` on the CommitService, to request the needed
commits for pipelines. These commits are needed to display the user that
created the commit and the commit title.

This includes fixes for tests failing that depended on the commit
being `nil`. However, now these are batch loaded, this doesn't happen
anymore and the commits are an instance of BatchLoader.
2017-12-19 10:05:40 +01:00
Douwe Maan
b1849ee2e6 Use a dedicated queue for each worker 2017-12-12 17:36:20 +01:00
Douwe Maan
0b15570e49 Add ApplicationWorker and make every worker include it 2017-12-05 11:59:39 +01:00
Grzegorz Bizon
8417507201 Assign all pipeline workers to specific queues 2017-08-21 14:02:20 +02:00
Douwe Maan
fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
Douwe Maan
70b05a8377 Split up MergeRequestsController 2017-06-28 18:17:44 -05:00
Kamil Trzcinski
da0c543e28 Add MISSING e-tag refresh of resource for Job, and Pipeline Graph 2017-05-22 22:07:11 +02:00
Toon Claes
14642e3c28 Refactor ExpirePipelineCacheWorker#perform
Make it gracefully handle unexisting pipelines and refactor iterating
all the merge request paths.
2017-04-24 10:23:41 +02:00
Toon Claes
c623c41c2f Use a better performing query to find all MRs for pipeline
And add some specs.
2017-04-24 10:07:01 +02:00
Toon Claes
ccb9beeed0 Properly expire cache for **all** MRs of a pipeline
Turn ExpirePipelineCacheService into Worker so it can fetch all the
merge requests for which the pipeline runs or did run against.
2017-04-24 10:07:01 +02:00