web2py.gluon.scheduler

Package web2py :: Package gluon :: Module scheduler |
[hide private]
[frames] | no frames]

# Module scheduler

source code

Classes | [hide private]
| Task
| TaskReport
| MetaScheduler
| TYPE validator that check whether field is valid json and validate its type
| Scheduler

Functions | [hide private]
demo_function(*argv, **kwargs) test function | source code
_decode_list(lst) | source code
_decode_dict(dct) | source code
executor(queue, task) the background process | source code
main() allows to run worker without python web2py.py .... | source code

Variables | [hide private]
| USAGE = ``...``
| QUEUED = `'QUEUED'`
| ASSIGNED = `'ASSIGNED'`
| RUNNING = `'RUNNING'`
| COMPLETED = `'COMPLETED'`
| FAILED = `'FAILED'`
| TIMEOUT = `'TIMEOUT'`
| STOPPED = `'STOPPED'`
| ACTIVE = `'ACTIVE'`
| INACTIVE = `'INACTIVE'`
| DISABLED = `'DISABLED'`
| SECONDS = `1`
| HEARTBEAT = `3* SECONDS`
| TASK_STATUS = `QUEUED, RUNNING, COMPLETED, FAILED, TIMEOUT, STO`...``
| RUN_STATUS = `RUNNING, COMPLETED, FAILED, TIMEOUT, STOPPED`
| WORKER_STATUS = `ACTIVE, INACTIVE, DISABLED`

Function Details | [hide private]

### main() | source code
allows to run worker without python web2py.py .... by simply python this.py

Variables Details | [hide private]

  ### USAGE Value:
      """
      ## Example

      For any existing app

      Create File: app/models/scheduler.py ======
      from gluon.scheduler import Scheduler

      ...

  ### TASK_STATUS Value:
      QUEUED, RUNNING, COMPLETED, FAILED, TIMEOUT, STOPPED