Skip to content

Commit fc0155e

Browse files
committed
Handle PDSCascadingSearchJobs with symbols
In the previous commit this job was converted to use string arguments. This adds a fallback to ensure that if any existing jobs with symbols are executed correctly. Jira-Issue: MAV-7288
1 parent 3cd29f3 commit fc0155e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/jobs/pds_cascading_search_job.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ def perform(searchable, step_name: nil, search_results: nil, queue: nil)
1111
search_results ||= []
1212
queue ||= "pds"
1313

14+
# FIXME: Remove these once we're not queuing jobs using symbols.
15+
step_name = step_name.to_s
16+
queue = queue.to_s
17+
1418
SemanticLogger.tagged(
1519
searchable: "#{searchable.class.name}##{searchable.id}",
1620
step: step_name

0 commit comments

Comments
 (0)