gitlab-org--gitlab-foss/spec/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 Remove sidekiq build queue and assign pipeline queue 2017-08-21 14:16:51 +02:00
repository_check Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
authorized_projects_worker_spec.rb Move sidekiq-based project authorization refresh out of Projects::CreateService 2017-08-25 16:19:32 +01:00
background_migration_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
build_coverage_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
build_finished_worker_spec.rb Fix pipeline job worker specs 2017-08-23 11:46:10 +02:00
build_hooks_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
build_success_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
create_gpg_signature_worker_spec.rb pass whole commit to Gitlab::Gpg::Commit again 2017-09-05 12:18:31 +02:00
delete_merged_branches_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
delete_user_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
email_receiver_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
emails_on_push_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
every_sidekiq_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
expire_build_artifacts_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
expire_build_instance_artifacts_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
expire_job_cache_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
expire_pipeline_cache_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
git_garbage_collect_worker_spec.rb Restore has_visible_content? to improve performance (cache) 2017-09-14 13:03:36 +02:00
gitlab_usage_ping_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
group_destroy_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
invalid_gpg_signature_update_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
merge_worker_spec.rb Add changelog 2017-08-28 15:48:09 -03:00
namespaceless_project_destroy_worker_spec.rb Migration to remove pending delete projects with non-existing namespace 2017-08-22 14:29:54 +02:00
new_issue_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
new_merge_request_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
new_note_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
pipeline_hooks_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
pipeline_metrics_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
pipeline_notification_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
pipeline_process_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
pipeline_schedule_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
pipeline_success_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
pipeline_update_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
post_receive_spec.rb Removes default scope from sortable 2017-09-07 13:01:59 +01:00
process_commit_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
project_cache_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
project_destroy_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
propagate_service_template_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
prune_old_events_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
reactive_caching_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
remove_expired_group_links_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
remove_expired_members_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
remove_old_web_hook_logs_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
remove_unreferenced_lfs_objects_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
repository_fork_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
repository_import_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
schedule_update_user_activity_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
stage_update_worker_spec.rb Add specs for stage update worker 2017-07-31 12:07:05 +02:00
stuck_ci_jobs_worker_spec.rb Improve spec 2017-09-05 14:30:28 +09:00
stuck_import_jobs_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
stuck_merge_jobs_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
system_hook_push_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
trending_projects_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
update_merge_requests_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
update_user_activity_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00
upload_checksum_worker_spec.rb Revert adding shared examples for every sidekiq worker 2017-08-22 12:09:57 +02:00