summaryrefslogtreecommitdiff
path: root/app/workers/process_commit_worker.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix ProcessCommitWorker when upstream project is deletedSean McGivern2018-07-101-2/+3
|
* Enable frozen string literals for app/workers/*.rbgfyoung2018-06-271-0/+2
|
* Fix MR merge commit cross-references to the MR itselfSean McGivern2018-03-051-4/+3
|
* applying feedback32564-fix-double-system-closing-notesMicaël Bergeron2018-02-161-3/+3
| | | | # modified: lib/gitlab/git/commit.rb
* stop ProcessCommitWorker from processing MR merge commitMicaël Bergeron2018-02-161-7/+5
| | | | | | | When a merge request is merged, it creates a commit with the description of the MR, which may contain references and issue closing references. As this will be handled in the PostMergeService anyways, let's ignore merge commit generated from a MR.
* Add ApplicationWorker and make every worker include itDouwe Maan2017-12-051-2/+1
|
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-4/+4
|
* Remove unecessary commit pattern checkFelipe Artur2017-05-251-3/+1
|
* Prevent commits from upstream repositories to be re-processed by forksFelipe Artur2017-05-221-0/+13
|
* Use regex to skip unnecessary reference processing in ProcessCommitWorkerJames Edwards-Jones2017-05-041-0/+3
|
* Remove useless queries with false conditions (e.g 1=0)mhasbini2017-04-041-0/+2
|
* Pass commit data to ProcessCommitWorkerprocess-commit-worker-improvementsYorick Peterse2016-12-011-9/+16
| | | | | | | | | | | By passing commit data to this worker we remove the need for querying the Git repository for every job. This in turn reduces the time spent processing each job. The migration included migrates jobs from the old format to the new format. For this to work properly it requires downtime as otherwise workers may start producing errors until they're using a newer version of the worker code.
* Process commits in a separate workerprocess-commits-using-sidekiqYorick Peterse2016-11-071-0/+67
This moves the code used for processing commits from GitPushService to its own Sidekiq worker: ProcessCommitWorker. Using a Sidekiq worker allows us to process multiple commits in parallel. This in turn will lead to issues being closed faster and cross references being created faster. Furthermore by isolating this code into a separate class it's easier to test and maintain the code. The new worker also ensures it can efficiently check which issues can be closed, without having to run numerous SQL queries for every issue.