You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
## Version 0.9.0
2
+
- Added `continuous` jobs: a light-weight alternative to loop jobs. Continuous jobs automatically submit their continuation but do not track their cycle nor do they perform archival operations. See [the manual](https://vachalab.github.io/qq-manual/continuous_job.html) for more information.
3
+
4
+
***
5
+
1
6
## Version 0.8.0
2
7
- Added the `--transfer-mode` and `--archive-mode` options, which allow automatically transferring (and archiving, respectively) files from the working directory for other jobs than those successfully finished. See [the manual](https://vachalab.github.io/qq-manual/transfer_modes.html) for more information.
3
8
- As a consequence of the above change, the behavior of `qq go`, `qq sync`, and `qq wipe` has been slightly adjusted.
Resubmit the current loop job to the batch system if additional cycles remain.
652
+
Resubmit the current job if either of the following is true:
653
+
a) it is a loop job and additional cycles remain,
654
+
b) it is a continuous job that should be resubmitted.
650
655
651
656
Raises:
652
657
QQError: If the job cannot be resubmitted.
653
658
"""
654
-
ifnot (loop_info:=self._informer.info.loop_info):
655
-
logger.debug("Loop info is undefined while resubmiting. This is a bug!")
656
-
return
657
-
658
-
ifloop_info.current>=loop_info.end:
659
-
logger.info("This was the final cycle of the loop job. Not resubmitting.")
660
-
return
661
-
662
659
ifnotself._should_resubmit:
663
660
logger.info(
664
661
f"The script finished with an exit code of '{CFG.exit_codes.qq_run_no_resubmit}' indicating that the next cycle of the job should not be submitted. Not resubmitting."
665
662
)
666
663
return
667
664
665
+
ifself._informer.info.job_type==JobType.LOOP:
666
+
ifnot (loop_info:=self._informer.info.loop_info):
667
+
logger.warning(
668
+
"Loop info is undefined while resubmiting a loop job. This is a bug!"
669
+
)
670
+
return
671
+
672
+
ifloop_info.current>=loop_info.end:
673
+
logger.info(
674
+
"This was the final cycle of the loop job. Not resubmitting."
675
+
)
676
+
return
677
+
668
678
logger.info("Resubmitting the job.")
669
679
logger.debug(
670
680
f"Resubmitting using the batch system '{str(self._batch_system)}'."
0 commit comments