Package expedient :: Package common :: Package timer :: Module models :: Class Job
[hide private]
[frames] | no frames]

Class Job

source code


Describes a periodic job.

Nested Classes [hide private]
  DoesNotExist
  MultipleObjectsReturned

Inherited from django.db.models.base.Model: __metaclass__

Instance Methods [hide private]
 
objects(...)
 
reset_timer(self) source code
 
execute_now(self)
Executes this job right away.
source code
 
conditional_execute(self)
Executes this job if the timer has passed and resets it.
source code
 
__unicode__(self) source code
 
_base_manager(...)
 
get_next_by_next_run_time(*moreargs, **morekwargs)
 
get_previous_by_next_run_time(*moreargs, **morekwargs)

Inherited from django.db.models.base.Model: __eq__, __hash__, __init__, __ne__, __reduce__, __repr__, __str__, clean, clean_fields, date_error_message, delete, full_clean, prepare_database_save, save, save_base, serializable_value, unique_error_message, validate_unique

Inherited from django.db.models.base.Model (private): _collect_sub_objects, _get_FIELD_display, _get_next_or_previous_by_FIELD, _get_next_or_previous_in_order, _get_pk_val, _get_unique_checks, _perform_date_checks, _perform_unique_checks, _set_pk_val

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  next_run_time = models.DateTimeField(help_text= "When the next...
  period = models.BigIntegerField(help_text= "Time between job r...
  callable_name = models.CharField(help_text= "Name of function ...
  _default_manager = <expedient.common.timer.models.JobManager o...
  _meta = <Options for Job>

Inherited from django.db.models.base.Model (private): _deferred

Properties [hide private]

Inherited from django.db.models.base.Model: pk

Inherited from object: __class__

Class Variable Details [hide private]

next_run_time

Value:
models.DateTimeField(help_text= "When the next job is scheduled.")

period

Value:
models.BigIntegerField(help_text= "Time between job runs in seconds.")

callable_name

Value:
models.CharField(help_text= "Name of function to call.", unique= True,\
 max_length= 255)

_default_manager

Value:
<expedient.common.timer.models.JobManager object at 0x87def0c>