Class: AddTaskTagsJob

Inherits:
ContainerBrokerBaseJob show all
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

request_id_from_args

Methods inherited from ContainerBrokerBaseJob

request_id_from_args

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.tags.each_key do |tag_name|
    TaskTag.find_or_create_by(name: tag_name.to_s)
  end
end