Send 'E' and 'IP' statuses to myMdC for correction jobs
Description
Luis tells me that proposals set to auto-calibrate migrated runs have a cron job which will launch calibration for any runs with calibration status 'NA' (not available). We've been setting this when calibration fails, which could lead to an infinite loop of calibration failing and restarting. I don't think we've seen this yet - we fixed a different infinite loop in !796 (merged) - but now that we have a separate 'E' for error status, we should use that instead.
Update: this now also uses the new 'IP' (In Progress) status for running jobs, instead of 'R'. The myMdC change was deployed on Saturday (2023-02-11).
How Has This Been Tested?
Deployed on max-exfl017, see below.
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
- My code follows the code style of this project.
Reviewers
Merge request reports
Activity
Thank you.
Just for documentation, here is the list of values currently accepted for flag
flg_cal_data_status
https://git.xfel.eu/ITDM/metadata_catalog/-/blob/develop/app/models/run.rb#L156
Please note that option
IP
(In Progress) was discussed last Thursday afternoon and deployed in production last Saturday (11 February 2023).Thank you. Cheers,
mentioned in merge request !796 (merged)
@maial it looks like myMdC lets you start a new calibration while it's in progress (at least, the 'Start new calibration' option looks active in the dropdown. We should probably block that, like you already do for 'R' status.
Thank you, @kluyvert.
Let me take a look
mentioned in commit 23a4eaf2