-
Notifications
You must be signed in to change notification settings - Fork 47
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
Issues with the grid_phonon_flow and custom decorators when using Parsl #1882
Issues with the grid_phonon_flow and custom decorators when using Parsl #1882
Conversation
Can one of the admins verify this patch? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1882 +/- ##
=======================================
Coverage 99.29% 99.29%
=======================================
Files 81 81
Lines 3273 3273
=======================================
Hits 3250 3250
Misses 23 23 ☔ View full report in Codecov by Sentry. |
I understand the bug now. You are updating the decorator to the This is not related to Parsl. It is a general bug. |
I tried to do this, but somehow it was still throwing the same error? pw_job, ph_init_job, ph_job, ph_recover_job = customize_funcs(
["relax_job", "ph_init_job", "ph_job", "ph_recover_job"],
[relax_job, phonon_job, phonon_job, phonon_job],
parameters=job_params,
decorators=job_decorators,
)
_ph_recover_custom = redecorate(_ph_recover_job, job_decorators.get("ph_recover_job", job())) |
It is not immediately clear to me what is wrong with your snippet, but the original code is definitely not correct in that regard. I can potentially see the argument for a If we go with the |
It seems like the last job (recover job) is actually re-doing everything instead of reading files. This is probably due to file not being copied I modified one test to make sure that Quacc catch this. I will fix it when I got the time |
Good idea for the test. Makes sense as a potential culprit. The |
@tomdemeyere: If you keep the original |
Actually, scratch my comment. That would require the use of the I'll go ahead and merge this then, although I may return to it in the future. |
Summary of Changes
It seems that the "job within a job" concept is not well appreciated by Parsl when using custom executors (redecorated jobs). Leading to problems as mentioned in #1852
Changing this
job
(_ph_recover_job) to asubflow
and removing strip_decorators does make things work. We have now to understand how this can possibly affect other workflow engines.Checklist
main
.Notes