Skip to content

Fallback schedules should get a distinct source #841

@Flix6x

Description

@Flix6x

In case of an infeasible problem, the StorageScheduler falls back to using the fallback_charging_policy, while schedule data is still being attributed to the StorageScheduler. It would help debugging to be able to visually distinguish schedule data originating from one or the other, by having fallback schedules saved with their own distinct source.

I propose we refactor fallback_charging_policy to its own FallbackStorageScheduler, and think about triggering. For example:

  1. We could let the original scheduling job fail, and upon failure set up the fallback scheduling job. This would then also require something clever for retrieving schedules (getting a schedule using the ID of the failed job should result in obtaining the fallback job).
  2. Alternatively, we compute the fallback schedule within the same job (thereby dispensing with the issue of scheduling job IDs). We let the StorageScheduler.compute method fail, and trigger the fallback within the services.scheduling.make_schedule method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions