celery.apps.beat
¶
Beat command-line program.
This module is the „program-version“ of celery.beat
.
It does everything necessary to run that module as an actual application, like installing signal handlers and so on.
- class celery.apps.beat.Beat(max_interval: Optional[int] = None, app: Optional[Celery] = None, socket_timeout: int = 30, pidfile: Optional[str] = None, no_color: Optional[bool] = None, loglevel: str = 'WARN', logfile: Optional[str] = None, schedule: Optional[str] = None, scheduler: Optional[str] = None, scheduler_cls: Optional[str] = None, redirect_stdouts: Optional[bool] = None, redirect_stdouts_level: Optional[str] = None, quiet: bool = False, **kwargs: Any)[исходный код]¶
Beat as a service.
- class Service(app, max_interval=None, schedule_filename=None, scheduler_cls=None)¶
Celery periodic task service.
- get_scheduler(lazy=False, extension_namespace='celery.beat_schedulers')¶
- property scheduler¶
- scheduler_cls¶
alias of
PersistentScheduler
- start(embedded_process=False)¶
- stop(wait=False)¶
- sync()¶
- banner(service: Service) str [исходный код]¶
- init_loader() None [исходный код]¶
- install_sync_handler(service: Service) None [исходный код]¶
Install a SIGTERM + SIGINT handler saving the schedule.
- run() None [исходный код]¶
- set_process_title() None [исходный код]¶
- setup_logging(colorize: Optional[bool] = None) None [исходный код]¶
- start_scheduler() None [исходный код]¶
- startup_info(service: Service) str [исходный код]¶