MCPcopy Create free account
hub / github.com/celery/celery / daemon_setting

Method daemon_setting

celery/bin/base.py:274–279  ·  view source on GitHub ↗

Try to fetch daemonization option from applications settings. Use the daemon command name as prefix (eg. `worker` -> `worker_pidfile`)

(self, ctx: Context, opt: CeleryOption, value: Any)

Source from the content-addressed store, hash-verified

272 **kwargs)
273
274 def daemon_setting(self, ctx: Context, opt: CeleryOption, value: Any) -> Any:
275 """
276 Try to fetch daemonization option from applications settings.
277 Use the daemon command name as prefix (eg. `worker` -> `worker_pidfile`)
278 """
279 return value or getattr(ctx.obj.app.conf, f"{ctx.command.name}_{self.name}", None)
280
281
282class CeleryDaemonCommand(CeleryCommand):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected