Changes between Version 13 and Version 14 of DeveloperGuidelines/Scheduler


Ignore:
Timestamp:
10/22/14 19:51:04 (10 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Scheduler

    v13 v14  
    2020Notes:
    2121* 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)
    2323 * 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()}}}
    2426== Recurring Tasks ==
    2527Adding 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`.