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

Set periodic attribute in periodic job metadata #728

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

bgentry
Copy link
Contributor

@bgentry bgentry commented Jan 23, 2025

This is a minor improvement coming out of #727 (reply in thread). Periodic jobs are currently indistinguishable from jobs inserted normally, which can make debugging more difficult. This PR changes the periodic job enqueuer to set a "periodic": true attribute on all periodic jobs' metadata to make them identifiable.

@bgentry bgentry added the enhancement New feature or request label Jan 23, 2025
@bgentry bgentry requested a review from brandur January 23, 2025 04:45
@bgentry bgentry force-pushed the bg-periodic-job-metadata branch 2 times, most recently from 878d197 to f536c6e Compare January 23, 2025 04:48
This attribute makes periodic jobs easier to identify over regular jobs.
@bgentry bgentry force-pushed the bg-periodic-job-metadata branch from f536c6e to be20964 Compare January 23, 2025 04:49
Copy link
Contributor

@brandur brandur left a comment

Choose a reason for hiding this comment

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

Nice! Yep, seems worthwhile.

@bgentry bgentry merged commit 0e97c89 into master Jan 23, 2025
10 checks passed
@bgentry bgentry deleted the bg-periodic-job-metadata branch January 23, 2025 14:59
@bgentry bgentry mentioned this pull request Jan 28, 2025
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.

2 participants