Working directory from configuration
When executing a workflow with local tasks (i.e. not pip installed), the working directory is important to be able to import those tasks.
We currently have a way to set the resource directory through CLI --dir
or configuration RESOURCE_DIRECTORY
. But there is not way of setting the working directory through CLI or config.
For example https://gitlab.esrf.fr/dau/devops/ansible/id14/-/tree/main/playbooks/roles/ewoksserver/files?ref_type=heads
RESOURCE_DIRECTORY = "{{ bl_user.home }}/ewoks/resources"
EWOKS = {
"handlers": [
{
"class": "ewoksjob.events.handlers.RedisEwoksEventHandler",
"arguments": [
{
"name": "url",
"value": "redis://{{ bliss.redis.host }}:{{ bliss.redis.port }}/4",
},
{"name": "ttl", "value": 86400},
],
}
]
}
CELERY = {}
It would be helpful to add
EXECUTE_DIRECTORY = "{{ bl_user.home }}/ewoks"
and also expose it as CLI option --exec-dir
. This is mainly useful for workflows with local task (i.e. not pip installed).
Edited by Wout De Nolf