I can't seem to get my cron working. Any tips?
Running 1.91.6 locally on a Mac.
cron/crontab:
#run every 2 minutes
*/2 * * * * root *cron/release_pending_items.py
controllers/cron.py:
def release_pending_items():
items = db(db.item.status=='pending').select()
for item in items:
item.update_record(status='active')
purchase = db(db.purchase.item==item.id).select().first()
purchase.update_record(status='abandoned')
db.commit()
Works fine when I call it in the browser:
http://127.0.0.1:8000/myapp/cron/release_pending_items