gitlab-org--gitlab-foss/app/workers
Yorick Peterse b3566a0104
Stop using Sidekiq for updating Key#last_used_at
This makes things simpler as no scheduling is involved. Further we
remove the need for running a SELECT + UPDATE just to get the key and
update it, whereas we only need an UPDATE when setting last_used_at
directly in a request.

The added service class takes care of updating Key#last_used_at without
using Sidekiq. Further it makes sure we only try to obtain a Redis lease
if we're confident that we actually need to do so, instead of always
obtaining it. We also make sure to _only_ update last_used_at instead of
also updating updated_at.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/36663
2017-09-20 14:24:14 +02:00
..
concerns Merge commit '2be34630623711fc20ef8c101b5cef688f207cc1' into backstage/gb/rename-ci-cd-processing-sidekiq-queues 2017-08-26 10:55:20 +02:00
repository_check
admin_email_worker.rb
authorized_projects_worker.rb Move sidekiq-based project authorization refresh out of Projects::CreateService 2017-08-25 16:19:32 +01:00
background_migration_worker.rb
build_coverage_worker.rb
build_finished_worker.rb
build_hooks_worker.rb
build_queue_worker.rb
build_success_worker.rb
create_gpg_signature_worker.rb pass whole commit to Gitlab::Gpg::Commit again 2017-09-05 12:18:31 +02:00
delete_merged_branches_worker.rb
delete_user_worker.rb
email_receiver_worker.rb
emails_on_push_worker.rb
expire_build_artifacts_worker.rb
expire_build_instance_artifacts_worker.rb
expire_job_cache_worker.rb
expire_pipeline_cache_worker.rb
git_garbage_collect_worker.rb Adds exclusive lease to Git garbage collect worker. 2017-09-07 18:52:04 +01:00
gitlab_shell_worker.rb
gitlab_usage_ping_worker.rb
group_destroy_worker.rb
import_export_project_cleanup_worker.rb
invalid_gpg_signature_update_worker.rb
irker_worker.rb
merge_worker.rb Track enqueued and ongoing MRs 2017-08-28 15:48:09 -03:00
namespaceless_project_destroy_worker.rb
new_issue_worker.rb
new_merge_request_worker.rb
new_note_worker.rb
pages_worker.rb
pipeline_hooks_worker.rb
pipeline_metrics_worker.rb
pipeline_notification_worker.rb
pipeline_process_worker.rb
pipeline_schedule_worker.rb
pipeline_success_worker.rb
pipeline_update_worker.rb
post_receive.rb
process_commit_worker.rb
project_cache_worker.rb
project_destroy_worker.rb
project_export_worker.rb
project_service_worker.rb
propagate_service_template_worker.rb
prune_old_events_worker.rb
reactive_caching_worker.rb
remove_expired_group_links_worker.rb
remove_expired_members_worker.rb
remove_old_web_hook_logs_worker.rb
remove_unreferenced_lfs_objects_worker.rb
repository_archive_cache_worker.rb
repository_fork_worker.rb
repository_import_worker.rb
requests_profiles_worker.rb
schedule_update_user_activity_worker.rb
stage_update_worker.rb
stuck_ci_jobs_worker.rb Fix enum lists 2017-09-05 14:30:28 +09:00
stuck_import_jobs_worker.rb
stuck_merge_jobs_worker.rb
system_hook_push_worker.rb
trending_projects_worker.rb
update_merge_requests_worker.rb
update_user_activity_worker.rb
upload_checksum_worker.rb
web_hook_worker.rb