Changes between Version 13 and Version 14 of DeveloperGuidelines/Scheduler
- Timestamp:
- 10/22/14 19:51:04 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Scheduler
v13 v14 20 20 Notes: 21 21 * args/vars need to be simple Text, Integer or JSON structures 22 * the scope for a task varies depending on whether the scheduler is running (new request) or not (same request as pushes it async)22 * The scope for a task varies depending on whether the scheduler is running (new request) or not (same request as pushes it async) 23 23 * therefore assume the least scope (new request) & ensure that testing is done with a real scheduler running 24 * If a task needs authorisation, then need to pass in the user_id & do {{{current.auth.s3_impersonate(user_id)}}} 25 * If a task modifies the database, then need to do a {{{db.commit()}}} 24 26 == Recurring Tasks == 25 27 Adding a schedule for a recurring task can be done by using [http://pub.nursix.org/eden/s3/s3.s3task.S3Task-class.html#schedule_task s3task.schedule_task()] in `/models/zzz_1st_run.py`.