[WIP] Boefje runonce functionality in scheduler #3906
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
With the specification on the plugin definition of
runon
theBoefjeScheduler
should be able to discern between task that needs to run once or that aschedule
needs to be created, and based on what type of mutation (CREATE
,UPDATE
).When a
schedule
or when a task needs to be run is laid out in this table #3879 (comment)Note that the
create_schedule
attribute on aScheduler
always takes precedence. When this is set toFalse
under no circumstances aschedule
will be created. As is the case with theNormalizerScheduler
.Reviewer notes
Tests for the outcomes of the mentioned table should be made. This is as of yet untested, but can be reviewed, and qa'ed.
Issue link
Closes #3879
QA notes
Should be able to work with the following pr #3901
Reference this table #3879 (comment)
These paths should be tested
Code Checklist
.env
changes files if required and changed the.env-dist
accordingly.Checklist for code reviewers:
Copy-paste the checklist from the docs/source/templates folder into your comment.
Checklist for QA:
Copy-paste the checklist from the docs/source/templates folder into your comment.