postgresql - Heroku Schedule task with postgres connection and python -
i have web app running on heroku using flask , sqlalchemy. wondering how can start schedule task runs daily , database related tasks (deleting row if need know:)
the documentation on heroku recommends use apscheduler heroku-scheduler. dispite decision know how connect postgres database in scheduler task. not find example or hint that.
thanks time torsten
heroku scheduler run command throw @ it. typical way create python script/command part of flask app. can similar http://flask-script.readthedocs.org/en/latest/. within scheduler schedule similar to:
python manage.py mytask
Comments
Post a Comment