DaemonOption
Common daemonization option
Constructor
Signature
def DaemonOption(
*args: tuple,
**kwargs: dict
)
Parameters
| Name | Type | Description |
|---|---|---|
| *args | tuple | Variable length argument list. |
| **kwargs | dict | Arbitrary keyword arguments, including optional 'help_group' and 'callback'. |
Signature
def DaemonOption(
*args: any,
**kwargs: any
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| *args | any | Positional arguments passed to the parent CeleryOption constructor |
| **kwargs | any | Keyword arguments including optional help_group and callback overrides |
Methods
daemon_setting()
@classmethod
def daemon_setting(
ctx: [Context](../../app/task/context.md?sid=celery_app_task_context),
opt: [CeleryOption](celeryoption.md?sid=celery_bin_base_celeryoption),
value: Any
) - > Any
Try to fetch daemonization option from applications settings. Use the daemon command name as prefix (eg. worker - > worker_pidfile)
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | [Context](../../app/task/context.md?sid=celery_app_task_context) | The Click context object containing the command name and application state |
| opt | [CeleryOption](celeryoption.md?sid=celery_bin_base_celeryoption) | The specific Celery option instance being processed |
| value | Any | The current value of the option provided via command line or environment variables |
Returns
| Type | Description |
|---|---|
Any | The configuration value retrieved from the application settings or the provided default value |