-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix presentation of the Queue in the Recurring Jobs page #41
base: main
Are you sure you want to change the base?
Conversation
7c66168
to
937f0e1
Compare
mind rebasing this against main? |
937f0e1
to
69de50a
Compare
Rebased - There are a handful of CI failures, but they all seem related to timeouts to Redis |
@job_specs.each_value do |job_spec| | ||
job_spec['cron'] ||= job_spec['every'] | ||
|
||
job_spec['queue'] ||= begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if this should be in the from_hash
function in the Schedule
class, so that this behavior is consistent even outside of this view?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(i'm also wondering if we need to also support ActiveJob's queue_as
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly? However, this code explicitly calls from_redis, so it appears to be redis specific to begin with (not sure why, just noting the observation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, true. but makes me think this logic should be in the schedule class... iow -- there seems to be some manipulation of the state of the schedule before display, such as the queue, so that logic either is duplicated somewhere or what's being displayed isn't matching what's actually being done (like the queue). (one other option is that i just haven't had enough ☕ )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the change to refactor into the from_hash
method might be a bit out of my depth as I'm not as familiar with the code base. I'm wondering if it makes sense to merge this PR as is, since it fixes the problem, and then a follow up could be done to refactor into from_hash
Fixes #38
Built on top of #39 so I could actually test the fix via the web interface.EDIT: This was merged elsewhereBefore:
After: