A member of our team shared these ideas:
Remove the line
export CRYOSPARC_LICENSE_ID=...
from /path/to/cryosparc_worker/config.sh
if that line exists, then
Alternative A (applies to instances where all lanes are cluster lanes), for each master instance:
In the the cluster_script.sh
template, insert just above the line that includes {{ run_cmd }}
a line with:
export CRYOSPARC_LICENSE_ID=...
matching the corresponding /path/to/cryosparc_master/config.sh
value.
Alternative B (also applies to non-cluster worker installations), for each master instance:
-
Create a script
/path/to/custom/cryosparcw
(accessible on workers):#!/usr/bin/env bash export CRYOSPARC_LICENSE_ID=... exec /path/to/real/cryosparc_worker/bin/cryosparcw $@
-
Make the custom script executable with
chmod +x /path/to/custom/cryosparcw
-
Update the scheduler to use the custom script. Execute these commands inside
cryosparcm icli
:targets = cli.get_config_var(name='targets', colname='sched_config') for target in targets: target['worker_bin_path'] = '/path/to/custom/cryosparcw' cli.set_config_var(name='targets', value=targets, colname='sched_config')