I’ve set up a simple cron schedule, which is runni...
# announcements
I’ve set up a simple cron schedule, which is running correctly. However, a solid in the pipeline calls
, (through
) 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
file, although this file is overwritten each time I call
dagster schedule up
. Is there a better approach/workaround for this?
I’ve got this working with something like the following (in the solid) instead of manually editing the bash script:
Copy code
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?
i cant think of a cleaner workaround 😕 - there is a new daemon based scheduler impl coming in
that should remove these cron related issues so keep an eye out for that
Cool - thanks - I can live with my workaround until then 😛