bluesky_queueserver.is_re_worker_active
- bluesky_queueserver.is_re_worker_active()[source]
The function can be used in startup scripts or modules to check if the script is imported or executed in RE Worker environment. For example, an experimental plan may contain interactive features that should be disabled if the plan is executed remotely:
from bluesky_queueserver import is_re_worker_active ... if is_re_worker_active(): (code without interactive features, e.g. reading data from a file) else: (code with interactive features, e.g. manual data input) ...
- Returns:
- boolean
True
- the code is executed in RE Worker environment, otherwiseFalse
.