Class: AddTaskTagsJob
- Inherits:
-
ContainerBrokerBaseJob
- Object
- ActiveJob::Base
- ApplicationJob
- ContainerBrokerBaseJob
- AddTaskTagsJob
- Extended by:
- RequestIdFromTask
- Defined in:
- app/jobs/add_task_tags_job.rb
Constant Summary
Constants inherited from ContainerBrokerBaseJob
ContainerBrokerBaseJob::JOB_METRIC
Instance Method Summary collapse
Methods included from RequestIdFromTask
Methods inherited from ContainerBrokerBaseJob
Instance Method Details
#perform(task:) ⇒ Object
8 9 10 11 12 |
# File 'app/jobs/add_task_tags_job.rb', line 8 def perform(task:) task..each_key do |tag_name| TaskTag.find_or_create_by(name: tag_name.to_s) end end |