cron - cronjob not executed on docker swarm deployment -


i using docker swarm control deployment several containers used machine learning application.

i have bash script sends commands executed containers. when execute script manually in console, works fine, commands sent containers , run when added same script executed cron, doesn't work (i using crontab -e command script executed user)

here's 1 example of scripts need run:

eval $(docker-machine env --swarm director) docker exec -d container_luigi-worker_1 luigi  --module etl alltasks 

and cron line is: 16 * * * * sh /path/script.sh

as using swarm, first need env of director, execute command using docker exec (in case command start job using spotify's luigi tool)

what missing? thanks


Comments

Popular posts from this blog

Multilayer CSV to filtered excel -

Listboxes in c# -

ios - Why must I define variables twice in the Header file? -