pynenc.core_tasks¶
Module Contents¶
Classes¶
Wrapper for core task functions that will be bound to an app at runtime. |
|
Registry for core tasks definitions that should run in any Pynenc instance. |
Functions¶
Get the app and runner context from the current execution context |
|
Recovers PENDING invocations that exceeded the allowed pending time |
|
Recovers PENDING invocations that exceeded the allowed pending time |
Data¶
API¶
- class pynenc.core_tasks.CoreTaskFunction(func: collections.abc.Callable)[source]¶
Wrapper for core task functions that will be bound to an app at runtime.
This wrapper allows the function to be identified as a core task during deserialization, enabling proper function extraction in Task._from_json.
Initialization
- class pynenc.core_tasks.CoreTaskDefinition[source]¶
Bases:
typing.NamedTuple- func: collections.abc.Callable¶
None
- class pynenc.core_tasks.CoreTaskRegistry[source]¶
Registry for core tasks definitions that should run in any Pynenc instance.
Initialization
- task(config_cron: str | None = None, **options: Any) collections.abc.Callable[[collections.abc.Callable], pynenc.core_tasks.CoreTaskFunction][source]¶
Deferred decorator that stores the function and options
- pynenc.core_tasks.get_app_and_runner_ctx() tuple[pynenc.app.Pynenc, pynenc.runner.runner_context.RunnerContext][source]¶
Get the app and runner context from the current execution context
- pynenc.core_tasks.core_tasks_registry¶
‘CoreTaskRegistry(…)’