Skip to content
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

Add "Next run" column to recurring tasks index #165

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

christopher-b
Copy link
Contributor

@christopher-b christopher-b commented Sep 30, 2024

This change adds a "Next run" column to the Recurring Tasks index page, which indicates when the job will next be enqueued. This is a feature that I got used to when using GoodJob, and I found I missed in Mission Control.

I'd be happy to hear feedback on the idea or the implementation. Thanks!

@rosa
Copy link
Member

rosa commented Oct 31, 2024

Thank you @christopher-b, and sorry for the delay!

@@ -1,7 +1,7 @@
class MissionControl::Jobs::RecurringTask
include ActiveModel::Model

attr_accessor :id, :job_class_name, :command, :arguments, :schedule, :last_enqueued_at, :queue_name, :priority
attr_accessor :id, :job_class_name, :command, :arguments, :schedule, :last_enqueued_at, :next_time, :queue_name, :priority
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would this get populated? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Either I missed something or things have changed since I created this PR 😄

It should be coming from SolidQueue::RecurringTask, but it seems l needed to add ecd58a9 to make that happen.

@rosa rosa merged commit 6f94696 into rails:main Nov 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants