Running cron jobs on aws elastic beanstalk - django

后端 未结 2 1311
没有蜡笔的小新
没有蜡笔的小新 2021-02-09 18:05

I\'m having trouble getting my cron jobs to execute.

Setup:

Django - 1.9

Elastic beanstalk - 64bit Amazon Linux 2016.03 v2.1.3 running Python 3.4

2条回答
  •  日久生厌
    2021-02-09 18:32

    This works for me in Django 1.10.6 + AWS ElasticBeanstalk + Cronjob

    * * * * * source /opt/python/run/venv/bin/activate && cd /opt/python/current/app/ && python manage.py do_your_thing > $HOME/cron-sqs.log 2>&1

    do_your_thing is a management command

提交回复
热议问题