-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete job files when rerunning; customizable execution command #201
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #201 +/- ##
===========================================
+ Coverage 73.08% 73.18% +0.10%
===========================================
Files 47 48 +1
Lines 6249 6347 +98
Branches 991 1012 +21
===========================================
+ Hits 4567 4645 +78
- Misses 1329 1340 +11
- Partials 353 362 +9
|
I like this added feature! Thanks very much @gpetretto |
@gpetretto oh, i see. This might be a lot of work. |
There is a
|
To comment on the problem with the OTP, one thing we discussed with @gpetretto is to also implement the deletion of the files when a job starts. This could be activated through, e.g. a "rerun_delete_strategy" option or something like that. Default would be e.g. "UPON_RERUN" with other two options being "NONE" (don't delete files) and "WHEN_STARTING". In your case @JaGeo, you'd be using this second option. I don't remember what were the downsides of this. |
@davidwaroquiers i see. Thanks! Might be good to have a detailed documentation on this then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Just a few things here and there. + comment regarding OTP.
After some discussion with @davidwaroquiers, we have thought that having multiple options might be confusing and it is not entirely clear if there is a benefit. So, instead, we could entirely remove the deletion process at the time the @JaGeo, @utf do you see any reason to keep the file deletion in the |
@gpetretto yes, this sounds like the best solution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! One or two suggestions for comments (up to you). Also one comment about python 3.12 (maybe not needed for this specific PR ?)
Co-authored-by: David Waroquiers <[email protected]>
Closing #197 and #196.
Delete files on rerun
As discussed in #197, this will remove the files from the worker when a Job is rerun.
jfremote_in.json
is missing a warning will be printed, but Job will be rerunNote that this functionality might have a direct impact for @JaGeo: now if a worker has a MFA when rerunning a job it will ask to insert the OTP.
Also I am not 100% convinced about point 2, if it instead should print a warning and still rerun the Job.
Also pinging @QuantumChemist @utf.
Customizable execution command
As discussed in #196 added a new option to customize the
jf -fe execution run
:execution_cmd
@yw-fang would this be fine?