summaryrefslogtreecommitdiff
path: root/app/workers/namespaceless_project_destroy_worker.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove the `ForkedProjectLink` modelBob Van Landuyt2018-10-191-2/+0
| | | | | | | | | | | | | | This removes the `ForkedProjectLink` model that has been replaced by the `ForkNetworkMember` and `ForkNetwork` combination. All existing relations have been adjusted to use these new models. The `forked_project_link` table has been dropped. The "Forks" count on the admin dashboard has been updated to count all `ForkNetworkMember` rows and deduct the number of `ForkNetwork` rows. This is because now the "root-project" of a fork network also has a `ForkNetworkMember` row. This count could become inaccurate when the root of a fork network is deleted.
* Enable frozen string literals for app/workers/*.rbgfyoung2018-06-271-0/+2
|
* Consistently schedule Sidekiq jobsdm-application-workerDouwe Maan2017-12-051-4/+0
|
* Add ApplicationWorker and make every worker include itDouwe Maan2017-12-051-2/+1
|
* Enable 5 lines of Sidekiq backtrace lines to aid in debuggingsh-sidekiq-backtraceStan Hu2017-08-251-0/+1
| | | | | | | | | | Customers often have Sidekiq jobs that failed without much context. Without Sentry, there's no way to tell where these exceptions were hit. Adding in additional lines adds a bit more Redis storage overhead. This commit adds in backtrace logging for workers that delete groups/projects and import/export projects. Closes #27626
* Revert "Merge branch 'sh-sidekiq-backtrace' into 'master'"Robert Speicher2017-08-251-1/+0
| | | This reverts merge request !13813
* Enable 5 lines of Sidekiq backtrace lines to aid in debuggingStan Hu2017-08-241-0/+1
| | | | | | | | | | Customers often have Sidekiq jobs that failed without much context. Without Sentry, there's no way to tell where these exceptions were hit. Adding in additional lines adds a bit more Redis storage overhead. This commit adds in backtrace logging for workers that delete groups/projects and import/export projects. Closes #27626
* Use EachBatch concern to loop over batchestc-remove-nonexisting-namespace-pending-delete-projectsToon Claes2017-08-221-5/+1
|
* Migration to remove pending delete projects with non-existing namespaceToon Claes2017-08-221-1/+6
| | | | | | | There might be some projects where the namespace was removed, but the project wasn't. For these the projects still have a `namespace_id` set. So this adds a post-deploy migration remove all projects that are pending delete, and have a `namespace_id` that is non-existing.
* Remove a wat in NamespacelessProjectDestroyWorkerNick Thomas2017-08-171-4/+0
|
* No user needed to cleanup namespaceless pending delete projectsToon Claes2017-05-101-4/+1
| | | | | Since this is a cleanup, ran by a post-deploy, there is no need to lookup the admin to run the cleanup.
* Use worker to destroy namespaceless projects in post-deployToon Claes2017-05-101-0/+46
Destroying projects can be very time consuming. So instead of destroying them in the post-deploy, just schedule them and make Sidekiq do the hard work. They are scheduled in batches of 5000 records. This way the number of database requests is limited while also the amount data read to memory is limited.