API endpoint to remove jobs from Sidekiq based on metadata
This API endpoint uses job metadata to remove jobs from a queue. It can only be used by admins, and deletes as many jobs as it can in 30 seconds. If it exceeds 30 seconds, it returns a flag indicating that the user should try again to finish processing the queue. (Because of the way Sidekiq queues work, it can't resume where it left off, so you just have to start from scratch each time.) By default, it's implemented in GraphQL, but there's also a matching REST endpoint for convenience.
显示
- app/graphql/mutations/admin/sidekiq_queues/delete_jobs.rb 52 个添加, 0 个删除app/graphql/mutations/admin/sidekiq_queues/delete_jobs.rb
- app/graphql/types/admin/sidekiq_queues/delete_jobs_response_type.rb 29 个添加, 0 个删除...l/types/admin/sidekiq_queues/delete_jobs_response_type.rb
- app/graphql/types/mutation_type.rb 1 个添加, 0 个删除app/graphql/types/mutation_type.rb
- changelogs/unreleased/add-endpoint-to-remove-sidekiq-jobs-based-on-metadata.yml 5 个添加, 0 个删除...add-endpoint-to-remove-sidekiq-jobs-based-on-metadata.yml
- doc/api/admin_sidekiq_queues.md 47 个添加, 0 个删除doc/api/admin_sidekiq_queues.md
- doc/api/api_resources.md 35 个添加, 34 个删除doc/api/api_resources.md
- doc/api/graphql/reference/gitlab_schema.graphql 81 个添加, 0 个删除doc/api/graphql/reference/gitlab_schema.graphql
- doc/api/graphql/reference/gitlab_schema.json 234 个添加, 0 个删除doc/api/graphql/reference/gitlab_schema.json
- doc/api/graphql/reference/index.md 20 个添加, 0 个删除doc/api/graphql/reference/index.md
- lib/api/admin/sidekiq.rb 36 个添加, 0 个删除lib/api/admin/sidekiq.rb
- lib/api/api.rb 1 个添加, 0 个删除lib/api/api.rb
- lib/gitlab/sidekiq_queue.rb 63 个添加, 0 个删除lib/gitlab/sidekiq_queue.rb
- spec/lib/gitlab/sidekiq_queue_spec.rb 94 个添加, 0 个删除spec/lib/gitlab/sidekiq_queue_spec.rb
- spec/requests/api/admin/sidekiq_spec.rb 65 个添加, 0 个删除spec/requests/api/admin/sidekiq_spec.rb
- spec/requests/api/graphql/mutations/admin/sidekiq_queues/delete_jobs_spec.rb 71 个添加, 0 个删除...raphql/mutations/admin/sidekiq_queues/delete_jobs_spec.rb
加载中
想要评论请 注册 或 登录