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

Fix nil periodic jobs #572

Merged
merged 3 commits into from
Aug 30, 2024
Merged

Fix nil periodic jobs #572

merged 3 commits into from
Aug 30, 2024

Conversation

bgentry
Copy link
Contributor

@bgentry bgentry commented Aug 30, 2024

Includes #567 with some additional coverage and a lint fix.

Closes #567.

This commit fixes an issue with the PerioridJobConstructor ignoring the
return value. According to the docs, we should ignore the job is nil is
returned.
@bgentry bgentry added the bug Something isn't working label Aug 30, 2024
@bgentry bgentry requested a review from brandur August 30, 2024 02:44
@bgentry bgentry force-pushed the fix-nil-periodic-jobs branch 2 times, most recently from 5dc0004 to c10df06 Compare August 30, 2024 02:47
@bgentry bgentry force-pushed the fix-nil-periodic-jobs branch from c10df06 to 31afef4 Compare August 30, 2024 02:48
@bgentry bgentry merged commit 8669cbc into master Aug 30, 2024
14 checks passed
@bgentry bgentry deleted the fix-nil-periodic-jobs branch August 30, 2024 12:09
tigrato pushed a commit to gravitational/river that referenced this pull request Dec 18, 2024
* Do not insert a new job if PeriodicJobConstructor returns nil

This commit fixes an issue with the PerioridJobConstructor ignoring the
return value. According to the docs, we should ignore the job is nil is
returned.

* Remove unused struct

* add client-level test coverage for PeriodicJobConstructor nil return

---------

Co-authored-by: Andriy Semenets <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants