mschubert / clustermq

R package to send function calls as jobs on LSF, SGE, Slurm, PBS/Torque, or each via SSH
https://mschubert.github.io/clustermq/
Apache License 2.0
146 stars 27 forks source link

CMQ_AUTH error in template #129

Closed be-marc closed 5 years ago

be-marc commented 5 years ago

If you structure your template like this

CMQ_AUTH={{ auth }}

R --no-save --no-restore -e 'clustermq:::worker("{{ master }}")'

you get the following error

Error in qsys$receive_data(timeout = timeout) :
  Authentication provided by worker does not match

This works

CMQ_AUTH={{ auth }} R --no-save --no-restore -e 'clustermq:::worker("{{ master }}")'
mschubert commented 5 years ago

Yes, this is correct. The environment variable must be set for the R process.

You can also use:

export CMQ_AUTH={{ auth }}

R --no-save --no-restore -e 'clustermq:::worker("{{ master }}")'
be-marc commented 5 years ago

Thank you