dlr-eoc / prosEO

prosEO – A Processing System for Earth Observation Data
GNU General Public License v3.0
14 stars 1 forks source link

Planner: Cancelling the last or only job step of a job does not set the job to failed #142

Closed tangobravo62 closed 3 years ago

tangobravo62 commented 3 years ago

When the last open job step of a job is cancelled, the job shall be set to FAILED, if this is the last open job of the order, the order shall also be set to FAILED. Currently this is not the case:

prosEO (PTM)> job step show 153
Database ID Output Class Job Step State
        154       PTM_L3 INITIAL

prosEO (PTM)> job step cancel 154
(I2777) Job step with database ID 154 cancelled (new version 8)

prosEO (PTM)> job step show 153
Database ID Output Class Job Step State
        154       PTM_L3 FAILED

prosEO (PTM)> job show L3_products_9:30-17:30
Database ID Sensing Start             Sensing Stop              Job State  
        148 2019-11-04T09:30:00       2019-11-04T13:30:00       COMPLETED  
        153 2019-11-04T13:30:00       2019-11-04T17:30:00       INITIAL    

prosEO (PTM)> order show L3_products_9:30-17:30
Identifier                     UUID                                   Sensing Start              Sensing Stop               Mode   Order State
L3_products_9:30-17:30         3b04835e-e7f2-4e3c-9055-edc821e8aa67   2019-11-04T09:30:00.000000 2019-11-04T17:00:00.000000 OPER   RUNNING
emelchinger commented 3 years ago

Propagate the job state after "cancel" to job and order.

tangobravo62 commented 3 years ago

To be extended to all status changes (suspend, resume etc.).

emelchinger commented 3 years ago

The update of job and order state after change of job step or job state is implemented. The (manual) tests were successful.