Skip to content

Tell an automation's owner when its run is skipped because of another organisation's automation #2914

In review

Description

@BelhsanHmida

Follow-up from the review of #2706.

Problem
flexmeasures monitor automations reports runs that failed, got stuck or could not be queued, not runs that were skipped. Within one organisation that is enough: when a run is skipped because its upstream run failed, the failed upstream run is reported, to the same people.

Across organisations it is not. Example: a battery schedule of organisation A waits for a price check on a public asset. The price check fails, so the battery schedule is skipped, and so is the battery report waiting for it. The price check's failure is reported to the host only, as a public asset has no organisation, and organisation A hears nothing. The same goes for an upstream automation in another organisation, whose failure reaches that organisation only.

Proposal
Report a run skipped because of an upstream run in another organisation (or on a public asset) to the organisation of the skipped run, in its user digest (#2703), naming the upstream automation and why it failed. The users of that organisation can read the upstream automation, as setting up the dependency required that.

  • Report only the first skipped run of a chain. The runs skipped because of it are listed under it, rather than reported one by one.
  • Skips caused within one organisation stay out of the digest, as they do now.
  • User digests are only sent with --notify-users, so this does not change what a host without that flag receives. The host digest could list these skips too; to be decided.

Part of #2519.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions