I'm using dask_jobqueue to establish a SLURMCluster. I'm trying to pass python files in the parent directory to the workers. I tried different ways including sys.path.append
, setting PYTHONPATH
in my .bashrc
file, and setting PYTHONPATH
in env_extra
(it seems DASK version can't recognize job_script_prologue
), but they all fail. The script works only when the imported Python files are in the same directory as the script. I just wonder if this is really the case (which means I should re-write my code to keep all files in the same directory), or I'm missing something here?
Also, I tried to use with performance_report
to record some statistics in an HTML file, but it seems it does not work with dask_jobqueue, right?