You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
causes a Psych::DisallowedClass: Tried to load unspecified class: Symbol.
Perhaps I am missing something obvious here, but I think this clear job may have been written assuming a hash with indifferent access or Hashie or something, but this assumption doesn't seem to hold true (at least in all circumstances).
Perhaps the job could be adjusted to check for both a Symbol and a String key, esp given #214 and #207
The text was updated successfully, but these errors were encountered:
bjeanes
added a commit
to bjeanes/que-scheduler
that referenced
this issue
Jan 25, 2021
The
Que::Scheduler::Jobs::QueSchedulerAuditClearDownJob
tries to pull the row count from passed options with:retain_row_count
, a Symbol:que-scheduler/lib/que/scheduler/jobs/que_scheduler_audit_clear_down_job.rb
Line 31 in 2f7f93c
I'm not sure if this is due to something ActiveJob is messing with (even though it seems this job is not wrapped by ActiveJob's
JobWrapper
).The example from the project README defines the schedule in the YAML file with a string key:
que-scheduler/README.md
Lines 194 to 197 in 2f7f93c
At least in my project and configuration, defining this with a Symbol key specifically is forbidden by Psych:
causes a
Psych::DisallowedClass: Tried to load unspecified class: Symbol
.Perhaps I am missing something obvious here, but I think this clear job may have been written assuming a hash with indifferent access or Hashie or something, but this assumption doesn't seem to hold true (at least in all circumstances).
Perhaps the job could be adjusted to check for both a Symbol and a String key, esp given #214 and #207
The text was updated successfully, but these errors were encountered: