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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -