Commit cd9c3c3
fix: 3342 faster touch runs and warning messages for non-existing files (#3398)
### Description
This PR tries to optimize the --touch runs but running the *sleep*
command only for jobs that actually need to touch files.
The *sleep* command is moved into the async *touch* function and run
only if there are files to be created.
Sleeping inside this async should block the entire asyncio event loop,
which is the desired behavior here as the order of files creation is
preserved.
For jobs with non-existing files, a warning messsage is displayed to the
user. A new *log_warning* function is added in the Job class.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced a configurable pause during file processing to enhance
operational flexibility.
- **Refactor**
- Streamlined the process for checking and processing output files,
ensuring clearer differentiation between file types.
- Improved logging to notify when certain expected files are not
present.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Johannes Köster <[email protected]>1 parent 024dc32 commit cd9c3c3
1 file changed
+26
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
46 | 63 | | |
47 | | - | |
| 64 | + | |
48 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
49 | 70 | | |
50 | 71 | | |
51 | 72 | | |
| |||
0 commit comments