forked from sbdchd/celery-types
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_state.pyi
More file actions
26 lines (22 loc) · 657 Bytes
/
Copy path_state.pyi
File metadata and controls
26 lines (22 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from collections.abc import Callable
from typing import Any
from celery.app.base import Celery
from celery.app.task import Task
__all__ = (
"connect_on_app_finalize",
"current_app",
"current_task",
"get_current_app",
"get_current_task",
"get_current_worker_task",
"set_default_app",
)
current_app: Celery
current_task: Task[Any, Any]
def get_current_task() -> Task[Any, Any]: ...
def get_current_app() -> Celery: ...
def get_current_worker_task() -> Task[Any, Any] | None: ...
def set_default_app(app: Celery) -> None: ...
def connect_on_app_finalize(
callback: Callable[[Celery], Any],
) -> Callable[[Celery], Any]: ...