A new enum field should be added to Stage to represent the creation status of the origin trial
Closed this issue · 1 comments
DanielRyanSmith commented
A new field ot_setup_status should be created for Stage entities. It should have 4 enum states (which will be added in core_enums.py)
OT_NOT_CREATED
, default value for OT stages that have not yet been used for OT creation.OT_READY_FOR_CREATION
, when the OT stage is ready to be created but hasn’t been attempted.OT_CREATION_FAILED
, when the creation request has been attempted but was not successful.OT_CREATED
, when the creation process was successful.
The cron jobs and requests currently set the boolean field ot_action_requested when there is a trial creation to handle. As Jason Chase stated in the design doc, this field needs to be more robust in order for the cron job to not attempt and fail trial creation multiple times.
- Set to
OT_READY_FOR_CREATION
during the OT creation form request step (add value change in code here). - Set
OT_CREATION_FAILED
orOT_CREATED
based on result in creation cron job (add value changes in code here).
DanielRyanSmith commented
The work for this has been landed and will be deployed to production over the course of the next week.