Richard Fisher
11/24/2020, 10:57 AMdocker
, (through subprocess.call()
) which seems not to be on the path when cron runs.
I can manually fix this by adding export PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin
to the $DAGSTER_HOME/schedules/scripts/{}.sh
file, although this file is overwritten each time I call dagster schedule up
.
Is there a better approach/workaround for this?my_env = os.environ.copy()
my_env['PATH'] = '/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin'
res = subprocess.check_call(['docker', <other_args>])
This doesn’t feel very elegant, so I’d still like a better approach, if anyone has any suggestions?alex
11/24/2020, 3:37 PM0.10.0
that should remove these cron related issues so keep an eye out for thatRichard Fisher
11/24/2020, 3:38 PM