Changes between Version 4 and Version 5 of DeveloperGuidelines/Scheduler


Ignore:
Timestamp:
07/09/13 08:47:25 (8 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Scheduler

    v4 v5  
    1010{{{
    1111#!python
    12 def my_task(*args, **kwargs):
    13         return result
     12def my_task(*args, **vars):
     13    return result
    1414
    1515tasks["my_task"] = my_task
    1616}}}
    1717
     18Notes:
     19* args/vars need to be simple Text or JSON structures
     20* the scope for a task varies depending on whether the scheduler is running (new request) or not (same request as pushes it async)
     21 * therefore assume the least scope (new request) & ensure that testing is done with a real scheduler running
    1822== Recurring Tasks ==
    1923Adding 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`.