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 dashboard for cron-style jobs #367

Merged
merged 3 commits into from
Sep 11, 2021

Conversation

aried3r
Copy link
Contributor

@aried3r aried3r commented Sep 8, 2021

Hey!

Since I'm still working on #359, I thought I could implement a very basic dashboard for cron-style jobs. Looks like this:

Screenshot 2021-09-08 at 14-46-04 Good Job Dashboard

args and set are not being displayed since they could be procs.

What do you think?

@aried3r
Copy link
Contributor Author

aried3r commented Sep 8, 2021

Hmm, the failed test seems like a fluke. I don't think this change should have made it time out.

Copy link
Owner

@bensheldon bensheldon left a comment

Choose a reason for hiding this comment

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

This is awesome! Thank you. I'm happy to merge this in right now...and I also left two comments that you're welcome to do now, or we can defer (I don't want perfection to be the enemy of good).

<%= link_to "All Jobs", root_path, class: ["nav-link", ("active" if current_page?(root_path))] %>
</li>
<li class="nav-item">
<%= link_to "Cron-style Jobs", cron_jobs_path, class: ["nav-link", ("active" if current_page?(root_path))] %>
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe "Cron Schedules"

@@ -102,5 +102,10 @@ def index
end,
}
end

def cron_jobs
Copy link
Owner

Choose a reason for hiding this comment

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

Ideally this would be in its own controller: CronSchedulesController.

@aried3r
Copy link
Contributor Author

aried3r commented Sep 9, 2021

Good suggestions! I didn't know which style you'd prefer, so I didn't create too many new files. I'll try to apply this changes either today or tomorrow.

@bensheldon bensheldon merged commit 7428b89 into bensheldon:main Sep 11, 2021
@bensheldon
Copy link
Owner

@aried3r Thank you so much for this! 🙌

@bensheldon bensheldon added the enhancement New feature or request label Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants