Repository navigation
Feat: automation cross org skip notice - #2941
Open
BelhsanHmida wants to merge 7 commits into
Open
BelhsanHmida wants to merge 7 commits into
BelhsanHmida wants to merge 7 commits into
Conversation
…n a public asset, failed The failed run is reported to its own organisation, or only to the host for a public asset, so the organisation of the run waiting for it never hears why that run did not happen. Only the first skipped run of each organisation along a chain is returned, with the runs of its organisation skipped because of it. Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
…he monitoring digests Each skipped run says which run it was skipped for, with that run's error if the reader may see that automation, and lists the runs of its organisation skipped after it. The host digest lists them too, and they count as reported once it is sent, as failed runs do. Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
|
📖 9 files modified
Preview · build overview · flexmeasures · built Dec. 1, 2026, 11:21 p.m. UTC |
Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
…or still reports it once they are deleted Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
…per reported run Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
… and docs speak of failed runs Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
This branch has not been deployed
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
When a run is skipped because the run it waits for failed in another organisation, or on a public asset, nobody in the skipped run's organisation hears about it: the failure is reported to the other organisation, or only to the host.
This PR reports such a skip in
flexmeasures monitor automations. For example, a battery schedule waits for a price check on a public asset, and the price check fails: the battery's organisation now gets the battery schedule as skipped in its digest, with the battery report that waits for it listed underneath.--notify-users) of the skipped run's organisationA chain that crosses into a third organisation is reported to each organisation separately, each digest listing only its own runs
alerted_at) once that digest is sent, as with failed runsdocumentation/changelog.rstLook & Feel
A user digest in the price check example (subject: "Skipped runs of 1 automation"):
How to test
Or by hand: make a public automation that fails, have an automation of your organisation wait for it, let both run, then run
flexmeasures monitor automations --notify-users. Your organisation's account admins get the skipped run, and a second monitor run sends nothing.Further Improvements
Related Items
Closes #2914
Part of #2519
Follow-up to #2706
Replaces #2940, which listed the commits of #2706 from before its squash merge
Sign-off