def cron(expression): trigger = triggers.cron(expression) return _job.Job(trigger=trigger)
def after(hours=None, minutes=None, seconds=None): trigger = triggers.after(hours=hours, minutes=minutes, seconds=seconds) return _job.Job(trigger=trigger)
def every(hours=None, minutes=None, seconds=None): trigger = triggers.every(hours=hours, minutes=minutes, seconds=seconds) return _job.Job(trigger=trigger)
def on(datetime_): trigger = triggers.on(datetime_) return _job.Job(trigger=trigger)
def email(*args, **kwargs): return _job.Job(task={'name': 'email', 'args': args, 'kwargs': kwargs})
def message(*args, **kwargs): return _job.Job(task={'name': 'message', 'args': args, 'kwargs': kwargs})
def request(*args, **kwargs): return _job.Job(task={'name': 'request', 'args': args, 'kwargs': kwargs})
def log(*args, **kwargs): return _job.Job(task={'name': 'log', 'args': args, 'kwargs': kwargs})