Skip to main content

beat

Start the beat periodic task scheduler.

def beat(
ctx: click.Context,
detach: boolean = False,
logfile: string = null,
pidfile: string = null,
uid: string = null,
gid: string = null,
umask: string = null,
workdir: string = null,
kwargs: dict
) - > null

Start the beat periodic task scheduler.

Parameters

NameTypeDescription
ctxclick.ContextThe Click context object containing the Celery application instance and configuration.
detachboolean = FalseWhether to daemonize the process and run the scheduler in the background.
logfilestring = nullThe file path where scheduler logs should be written.
pidfilestring = nullThe file path used to store the process ID for daemon management.
uidstring = nullThe user ID or username to switch to when dropping privileges.
gidstring = nullThe group ID or group name to switch to when dropping privileges.
umaskstring = nullThe file mode creation mask to use when running as a daemon.
workdirstring = nullThe working directory to change to after detaching.
kwargsdictAdditional configuration options including schedule file path, scheduler class, and log level.

Returns

TypeDescription
nullThis method runs the scheduler loop and does not return a value until the process is terminated.