Note: The target branch right now is 4.1.12-dev-branch because it is not merged but can be changed afterward.
This fixes the issue with the recovery #1481
How to test this issue:
-
Do an
autosubmit create
+ run , wait a bit, and control + c it at the middle of the run ( any workflow is valid )- In the Target Branch: Do an
autosubmit create -f
andautosubmit recovery a000 --all -f -s -np
- This branch: Do an
autosubmit create -f
andautosubmit recovery a000 --all -f -s -np
- In the Target Branch: Do an
-
Do an
autosubmit run
- In the target Branch, autosubmit will complain about logs not being downloaded or/and ready_date doesn't exist
- In this branch, there shouldn't be complaints about it.
The fix is to add two new functions which are called by autosubmit recovery
:
Which will recover these four values:
- job.ready_date from None to last_ready_date
- job.update_logs from False to True/False depending if the log is already in the local
- job.local_logs that points to the last log if available
- job.remote_logs that is a copy of the ones in local_log