Closed tangobravo62 closed 3 years ago
Data model updated, Facility Manager, CLI and GUI updated to handle new attribute.
TODO: Update Production Planner to respect facility state; TBD how the status changes (STOPPED --> STARTING --> RUNNING and RUNNING --> STOPPING --> STOPPED) shall be monitored.
Assigned to @emelchinger for update of Production Planner.
Processing facility status now taken into account by Production Planner. Open question of monitoring will be handled in greater context of logging and monitoring for prosEO.
For the user as well as for planning and product access purposes it is important to know, whether a processing facility is operational or not. Therefore a new attribute facilityState shall be introduced for processing facilities as an enumeration with the following values:
Allowed state transitions are DISABLED <--> STOPPED --> STARTING --> RUNNING --> STOPPING --> STOPPED.
All HTTP error status values shall be accompanied by an explanatory error message including the facility status.
Justification: Processing facilities may be taken down for maintenance, and processing facilities may be defined before they actually become available in the Cloud. Introducing a facility state prevents failing requests to unavailable facilities and creates transparency for the user.