gitlab-org--gitlab-foss/spec/workers
Mayra Cabrera dfdfa913ba Includes logic to persist namespace statistics
- Add two new ActiveRecord models:
  - RootNamespaceStoragestatistics will persist root namespace statistics
  - NamespaceAggregationSchedule will save information when a new update
to the namespace statistics needs to be scheduled
- Inject into UpdateProjectStatistics concern a new callback that will
call an async job to insert a new row onto NamespaceAggregationSchedule
table
- When a new row is inserted a new job is scheduled. This job will
update call an specific service to update the statistics and after that
it will delete thee aggregated scheduled row
- The RefresherServices makes heavy use of arel to build composable
queries to update Namespace::RootStorageStatistics attributes.
- Add an extra worker to traverse pending rows on
NAmespace::AggregationSchedule table and schedule a worker for each one
of this rows.
- Add an extra worker to traverse pending rows on
NAmespace::AggregationSchedule table and schedule a worker for each one
of this rows
2019-07-02 14:44:39 +00:00
..
auto_devops
ci
clusters/applications
concerns
deployments
gitlab/github_import
hashed_storage
mail_scheduler
namespaces
object_pool
repository_check
todos_destroyer
admin_email_worker_spec.rb
archive_trace_worker_spec.rb
authorized_projects_worker_spec.rb
auto_merge_process_worker_spec.rb
background_migration_worker_spec.rb
build_coverage_worker_spec.rb
build_finished_worker_spec.rb
build_hooks_worker_spec.rb
build_success_worker_spec.rb
build_trace_sections_worker_spec.rb
chat_notification_worker_spec.rb
cleanup_container_repository_worker_spec.rb
cluster_configure_worker_spec.rb
cluster_project_configure_worker_spec.rb
cluster_provision_worker_spec.rb
cluster_wait_for_ingress_ip_address_worker_spec.rb
create_gpg_signature_worker_spec.rb
create_note_diff_file_worker_spec.rb
create_pipeline_worker_spec.rb
delete_container_repository_worker_spec.rb
delete_diff_files_worker_spec.rb
delete_merged_branches_worker_spec.rb
delete_user_worker_spec.rb
detect_repository_languages_worker_spec.rb
email_receiver_worker_spec.rb
emails_on_push_worker_spec.rb
every_sidekiq_worker_spec.rb
expire_build_artifacts_worker_spec.rb
expire_build_instance_artifacts_worker_spec.rb
expire_job_cache_worker_spec.rb
expire_pipeline_cache_worker_spec.rb
git_garbage_collect_worker_spec.rb
gitlab_shell_worker_spec.rb
gitlab_usage_ping_worker_spec.rb
group_destroy_worker_spec.rb
import_issues_csv_worker_spec.rb
invalid_gpg_signature_update_worker_spec.rb
issue_due_scheduler_worker_spec.rb
merge_worker_spec.rb
migrate_external_diffs_worker_spec.rb
namespaceless_project_destroy_worker_spec.rb
new_issue_worker_spec.rb
new_merge_request_worker_spec.rb
new_note_worker_spec.rb
pages_domain_removal_cron_worker_spec.rb
pages_domain_ssl_renewal_cron_worker_spec.rb
pages_domain_ssl_renewal_worker_spec.rb
pages_domain_verification_cron_worker_spec.rb
pages_domain_verification_worker_spec.rb
pipeline_hooks_worker_spec.rb
pipeline_metrics_worker_spec.rb
pipeline_notification_worker_spec.rb
pipeline_process_worker_spec.rb
pipeline_schedule_worker_spec.rb
pipeline_update_worker_spec.rb
plugin_worker_spec.rb
post_receive_spec.rb
process_commit_worker_spec.rb
project_cache_worker_spec.rb
project_daily_statistics_worker_spec.rb
project_destroy_worker_spec.rb
project_export_worker_spec.rb
project_service_worker_spec.rb
propagate_service_template_worker_spec.rb
prune_old_events_worker_spec.rb
prune_web_hook_logs_worker_spec.rb
reactive_caching_worker_spec.rb
rebase_worker_spec.rb
remote_mirror_notification_worker_spec.rb
remove_expired_group_links_worker_spec.rb
remove_expired_members_worker_spec.rb
remove_unreferenced_lfs_objects_worker_spec.rb
repository_cleanup_worker_spec.rb
repository_fork_worker_spec.rb
repository_import_worker_spec.rb
repository_remove_remote_worker_spec.rb
repository_update_remote_mirror_worker_spec.rb
run_pipeline_schedule_worker_spec.rb
schedule_migrate_external_diffs_worker_spec.rb
stage_update_worker_spec.rb
stuck_ci_jobs_worker_spec.rb
stuck_import_jobs_worker_spec.rb
stuck_merge_jobs_worker_spec.rb
system_hook_push_worker_spec.rb
trending_projects_worker_spec.rb
update_head_pipeline_for_merge_request_worker_spec.rb
update_merge_requests_worker_spec.rb
update_project_statistics_worker_spec.rb
upload_checksum_worker_spec.rb
wait_for_cluster_creation_worker_spec.rb