-
-
Notifications
You must be signed in to change notification settings - Fork 146
Closed
Description
Describe the issue:
When using LSF and version 0.8.5. There is an error in using re
. I didn't have this issue when using 0.8.2. For the time being, I've just downgraded. The error is TypeError: expected string or bytes-like object
.
Minimal Complete Verifiable Example:
from dask_jobqueue import LSFCluster
from distributed import Client
mem_str = "1G"
cluster = LSFCluster(cores=1, memory=mem_str)
all_data = [1000.0]*100
try:
cluster.adapt(minimum=2, maximum=4)
print(cluster.dashboard_link)
with Client(cluster) as rc:
labeler_future = rc.scatter(all_data, broadcast=True)
cluster.scale(0)
finally:
cluster.close()
Anything else we need to know?:
Environment:
- Dask version: 2024.2.0
- Python version: 3.9.18
- Operating System: RHEL 8.9
- Install method (conda, pip, source): pip
The full error is:
2024-03-19 15:09:45,056 - tornado.application - ERROR - Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f799d524700>>, <Task finished name='Task-90' coro=<SpecCluster._correct_state_internal() done, defined at /group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/site-packages/distributed/deploy/spec.py:346> exception=TypeError('expected string or bytes-like object')>)
Traceback (most recent call last):
File "/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/site-packages/tornado/ioloop.py", line 750, in _run_callback
ret = callback()
File "/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/site-packages/tornado/ioloop.py", line 774, in _discard_future_result
future.result()
File "/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/site-packages/distributed/deploy/spec.py", line 390, in _correct_state_internal
await asyncio.gather(*worker_futs)
File "/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/asyncio/tasks.py", line 688, in _wrap_awaitable
return (yield from awaitable.__await__())
File "/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/site-packages/distributed/deploy/spec.py", line 74, in _
await self.start()
File "/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/site-packages/dask_jobqueue/core.py", line 427, in start
self.job_id = self._job_id_from_submit_output(out)
File "/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/site-packages/dask_jobqueue/core.py", line 433, in _job_id_from_submit_output
match = re.search(self.job_id_regexp, out)
File "/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/re.py", line 201, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/site-packages/distributed/utils.py:837: RuntimeWarning: coroutine 'Job._call' was never awaited
with self:
2024-03-19 15:10:14,470 - distributed.core - ERROR - Exception while handling op scatter
Traceback (most recent call last):
File "/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/site-packages/distributed/core.py", line 970, in _handle_comm
result = await result
File "/group/sw/slc/wafer_maps/janderson/envs/wafersig39/lib/python3.9/site-packages/distributed/scheduler.py", line 6022, in scatter
raise TimeoutError("No valid workers found")
asyncio.exceptions.TimeoutError: No valid workers found
stuarteberg
Metadata
Metadata
Assignees
Labels
No labels