celery.utils.timer2

timer2

Scheduler for Python functions.

class celery.utils.timer2.Entry(fun, args=None, kwargs=None)[源代码]

  • args None

  • cancel()[源代码]

  • cancelled None

  • fun None

  • kwargs None

  • tref None

celery.utils.timer2.Schedule[源代码]

Timer 的别名

class celery.utils.timer2.Timer(schedule=None, on_error=None, on_tick=None, on_start=None, max_interval=None, \*kwargs*)[源代码]

  • class Entry(fun, args=None, kwargs=None)

    • args None

    • cancel()

    • cancelled None

    • fun None

    • kwargs None

    • tref None

  • Timer.Schedule

    Timer 的别名

  • Timer.call_after(\args, **kwargs*)

  • Timer.call_at(\args, **kwargs*)

  • Timer.call_repeatedly(\args, **kwargs*)

  • Timer.cancel(tref)[源代码]

  • Timer.clear()[源代码]

  • Timer.empty()[源代码]

  • Timer.ensure_started()[源代码]

  • Timer.enter(entry, eta, priority=None)[源代码]

  • Timer.enter_after(\args, **kwargs*)[源代码]

  • Timer.exit_after(secs, priority=10)[源代码]

  • Timer.next()

  • Timer.on_tick = None

  • Timer.queue None[源代码]

  • Timer.run()[源代码]

  • Timer.running = False

  • Timer.stop()[源代码]

celery.utils.timer2.to_timestamp(d, default_timezone=<UTC>)[源代码]