Class: TasksToBeDone::CreateWorker
- Inherits:
-
Object
- Object
- TasksToBeDone::CreateWorker
- Includes:
- ApplicationWorker
- Defined in:
- app/workers/tasks_to_be_done/create_worker.rb
Constant Summary
Constants included from ApplicationWorker
ApplicationWorker::LOGGING_EXTRA_KEY, ApplicationWorker::SAFE_PUSH_BULK_LIMIT
Constants included from Gitlab::Loggable
Constants included from WorkerAttributes
WorkerAttributes::DEFAULT_DATA_CONSISTENCY, WorkerAttributes::DEFAULT_DEFER_DELAY, WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_DATA_CONSISTENCIES, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES
Instance Method Summary collapse
Methods included from Gitlab::Loggable
Methods included from Gitlab::SidekiqVersioning::Worker
Methods included from WorkerContext
Instance Method Details
#perform(member_task_id, current_user_id, assignee_ids = []) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/workers/tasks_to_be_done/create_worker.rb', line 13 def perform(member_task_id, current_user_id, assignee_ids = []) member_task = MemberTask.find(member_task_id) current_user = User.find(current_user_id) project = member_task.project member_task.tasks_to_be_done.each do |task| service_class(task) .new(container: project, current_user: current_user, assignee_ids: assignee_ids) .execute end end |