Skip to content

Set periodic attribute in periodic job metadata - #728

Merged
bgentry merged 1 commit into
masterfrom
bg-periodic-job-metadata
Jan 23, 2025
Merged

Set periodic attribute in periodic job metadata#728
bgentry merged 1 commit into
masterfrom
bg-periodic-job-metadata

Conversation

@bgentry

@bgentry bgentry commented Jan 23, 2025

Copy link
Copy Markdown
Contributor

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

@brandur brandur left a comment

Copy link
Copy Markdown
Contributor

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
@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