I am using dask_jobqueue.SGECluster() and when I submit jobs to the grid they are all listed as dask-worker. I want to have different names for each submitted job.
Here is one example:
futures = []
for i in range(1,10):
res = client.submit(slow_pow, i,2)
futures.append(res)
[future.result() for future in as_completed(futures)]
All 10 jobs appear with name dask-worker when checking their status with qsub.
I have tried adding client.adapt(job_name=f'job{i}') within the loop, but no success, name still dask-worker.
Any hints?
The
dask-workeris a generic name for the compute allocation from the cluster, it can be changed by providing cluster-specific arguments at the time the cluster is created. For example, for SLURMCluster this would be:SGECluster might have a different syntax.
The actual tasks submitted to
daskscheduler will have their names generated automatically bydaskand can be viewed through the dashboard, by default on (http://localhost:8787/status).It's possible to specify a custom name for each task submitted to scheduler by using
keykwarg:Note that if you are submitting multiple futures, you will want them to have unique keys: