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
{{ message }}
Repository navigation
Cluster keeps appending "interface" flag to job script #589
It seems everytime the job script method is called, the interface flag is appended to it. I am running dask-jobqueue==0.8.0 off the conda-forge channel. (Python 3.10 if relevant)
You can replicate this with PBSCluster as well. The issue seems to be in how worker_extra_args are handled in the __init__() method of dask_jobqueue.core.Job
changed the title [-]SLURMCluster keeps appending "interface" flag to job script[/-][+]Cluster keeps appending "interface" flag to job script[/+]on Oct 1, 2022
I am not sure if this causes any problems currently. Although I use a few more worker-extra-args and all of them get duplicated quite a bit in the job script over time.
I did not notice this funny feature so far, thanks! From a quick look at the renaming diffs, I don't see what might have caused that, but if you are sure that it did not happen in the previous release, I will have a closer look later!
From a quick look at the renaming diffs, I don't see what might have caused that
Neither do I, but I tested the problem on 0.7.4 and it did not behave that way. I admit I have no idea if this comes from the renaming or something else. It's ok if you don't have time, I just wanted to know if something strikes you.
Activity
[-]SLURMCluster keeps appending "interface" flag to job script[/-][+]Cluster keeps appending "interface" flag to job script[/+]guillaumeeb commentedon Oct 2, 2022
Hi @theXYZT,
Good catch!
It seems that when we retrieve the
worker-extra-argsfromdask.config(https://github.com/dask/dask-jobqueue/blob/main/dask_jobqueue/core.py#L226), as we don't make a copy, the object is kept in memory indask.config, and so we retrieve the same object each time we construct a Job.I'm not sure why yet, but this issue was not present in previous release (0.7.4) before we renamed
extrainworker-extra-args.I'll propose some fix, but I'd like to understand which change we made that lead to this result. cc @jolange if you have some idea.
@theXYZT does is causes errors on your system or is it just a visual problem?
theXYZT commentedon Oct 2, 2022
I am not sure if this causes any problems currently. Although I use a few more worker-extra-args and all of them get duplicated quite a bit in the job script over time.
jolange commentedon Oct 3, 2022
I did not notice this funny feature so far, thanks! From a quick look at the renaming diffs, I don't see what might have caused that, but if you are sure that it did not happen in the previous release, I will have a closer look later!
guillaumeeb commentedon Oct 3, 2022
Neither do I, but I tested the problem on 0.7.4 and it did not behave that way. I admit I have no idea if this comes from the renaming or something else. It's ok if you don't have time, I just wanted to know if something strikes you.
jolange commentedon Oct 3, 2022
I found the part of the renaming that is causing this. I still don't get why yet, but I'll figure it out and fix it!
jolange commentedon Oct 3, 2022
Ok, this is a subtle combination of two things:
worker_extra_args:dask-jobqueue/dask_jobqueue/core.py
Lines 226 to 228 in f79f913
X = X + NEWtoX += NEW:This changes the config, whereas before
worker_extra_args(orextrathen) was newly assigned. I will revert that!re-assigning `worker_extra_args` instead of altering it with `+=`
guillaumeeb commentedon Oct 3, 2022
Nice catch and many thanks @jolange.
re-assigning `worker_extra_args` instead of altering it with `+=` (#591)