-
-
Notifications
You must be signed in to change notification settings - Fork 31
Description
I'm putting this question here because the Singularity operator for Apache Airflow uses spython - didn't think I would get the attention on the airflow repo.
I followed the example DAG https://github.com/apache/airflow/tree/main/airflow/providers/singularity/example_dags and slightly modified the operator :
t3 = SingularityOperator(
command='ls -l',
image=<path to my image>,
options=['--pwd /home/'],
task_id='singularity_op_tester',
dag=dag
)
The container runs without an issue but the logs show the command operating on '/' instead of '/home/' corresponding to the defined option. I also observe similar behavior with other options that don't seem to translate over the the airflow runs (such as binds, --no-nv, --no-home). These options work fine outside of airflow as expected, so I don't think it's my singularity build. I'm probably missing something obvious, but I couldn't figure it out after a serious debugging effort.
Thanks!