Good question, Nebojsa. I can’t add a new lane via CLI in v3.2.0 of cryoSPARC:
$ cryosparcm icli "add_scheduler_lane(boguslane, cluster, title=None, desc='')"
Python 3.7.9 | packaged by conda-forge | (default, Dec 9 2020, 21:08:20)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.20.0 -- An enhanced Interactive Python. Type '?' for help.
connecting to master2:61002 ...
cli, rtp, db, gfs and tools ready to use
In [1]: add_scheduler_lane(boguslane, cluster, title=None, desc='')
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-1-0d81014c36f1> in <module>
----> 1 add_scheduler_lane(boguslane, cluster, title=None, desc='')
NameError: name 'add_scheduler_lane' is not defined
In [2]:
Note, desc=’’ has two single quotes (not a double quote), so the syntax looks correct to me.
I ended up editing the cluster_info.json file (from UGE template) to define a new lane name. Then, I did:
cryosparcm cluster connect
That created a new cluster lane (ugecluster) but I can’t add workers to that lane no matter what I try ( --lane option fails).
On the worker node:
$ ./cryosparcw connect --worker "gpu07" --master "master2" --ssdpath /tmp/cryosparc_cache --port 61000 --lane "ugecluster"
...
Registering worker...
Traceback (most recent call last):
File "bin/connect.py", line 277, in <module>
monitor_port = monitor_port,
File "/cryoSPARC3/cryosparc_worker/cryosparc_compute/client.py", line 62, in func
assert False, res['error']
AssertionError: {'code': 500, 'data': None, 'message': 'OtherError: Can not add node type target to non-node type lane.', 'name': 'OtherError'}
By the way, ‘–newlane’ option to ‘cryosparcw connect’ is not recognizable by the executable, so, you can’t create a new lane that way either.
I can only add workers to a default lane, before running ‘cryosparcm cluster connect’
Sergio