Fix/mutate job state when using flexmeasures jobs run-job#1929
Merged
Conversation
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Documentation build overview
Show files changed (7 files in total): 📝 6 modified | ➕ 1 added | ➖ 0 deleted
|
nhoening
approved these changes
Jan 26, 2026
Contributor
nhoening
left a comment
There was a problem hiding this comment.
Looks good.
I believe that the PR title & description should mention that (in my understanding), this only affects this one CLI command.
flexmeasures jobs run-job
…using work_on_rq with positional arguments Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
flexmeasures jobs run-jobupdate job metadata and move between registries (e.g. to failed or finished)documentation/changelog.rstdocumentation/cli/change_log.rstLook & Feel
scheduler_info, because the job was not being executed within an rq context.scheduler_infoin the job's metadata is updated.How to test
No new test added.
Further Improvements
None in scope (see related items).
Related Items
#1927 introduces the feature to run a job without changing anything, but that PR still needs work. This PR contains only the fix.