Skip to content

Commit

Permalink
Merge pull request #205 from redscode/master
Browse files Browse the repository at this point in the history
Fix for job_attributes with indifferent access.
  • Loading branch information
hlascelles committed Jul 11, 2020
2 parents 996900d + 6644421 commit 51f71f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/que/scheduler/version_support.rb
Expand Up @@ -33,7 +33,7 @@ def apply_retry_semantics(context)

def job_attributes(enqueued_job)
if zero_major?
enqueued_job.attrs.transform_keys(&:to_sym)
enqueued_job.attrs.to_h.transform_keys(&:to_sym)
else
enqueued_job.que_attrs.transform_keys(&:to_sym).tap do |hash|
hash[:job_id] = hash.delete(:id)
Expand Down

0 comments on commit 51f71f7

Please sign in to comment.