setstatus ignores statuses SUBMITTED, PREPARED, SKIPPED, DELAYED
Hello @dbeltran,
Autosubmit Version
master branch, tested with 4.0.96, and squashed-DestinE-1025 branch.
Expid affected(If applicable)
NA
Which task has issues? Where is the log(If applicable)
NA
Summary
Basically, if you try autosubmit setstatus a000 -fs SUBMITTED -t WAITING -s
, when you have tasks in SUBMITTED
, the command succeeds, without giving any indication of any warnings or errors. But it quietly ignores the SUBMITTED state. That's because in autosubmit.py
, in the function _get_status
, we only consider these states: READY, COMPLETED, WAITING, HELD, SUSPENDED, FAILED, RUNNING, QUEUING, UNKNOWN (total of 9 states).
In the Status
class we have 13 types. The ones missing are: SUBMITTED, PREPARED, SKIPPED, DELAYED.
Steps to reproduce
Run a local workflow, wait for some task to complete and stop the workflow. It should leave the next tasks in PREPARED or SUBMITTED. Try setting the status and you should see that they are not handled by Autosubmit.
What is the current bug behavior?
Autosubmit doesn't change status, and doesn't complain.
What is the expected correct behavior?
Status are set successfully, or error/warning messages presented to user.
Relevant logs and/or screenshots(if applicable)
NA
Any other relevant information(if applicable)
()