summaryrefslogtreecommitdiff
path: root/src/apscheduler/_context.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/apscheduler/_context.py')
-rw-r--r--src/apscheduler/_context.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/apscheduler/_context.py b/src/apscheduler/_context.py
index cc5aff2..5edc310 100644
--- a/src/apscheduler/_context.py
+++ b/src/apscheduler/_context.py
@@ -7,16 +7,13 @@ if TYPE_CHECKING:
from ._structures import JobInfo
from .schedulers.async_ import AsyncScheduler
from .schedulers.sync import Scheduler
- from .workers.async_ import AsyncWorker
- from .workers.sync import Worker
#: The currently running (local) scheduler
-current_scheduler: ContextVar[Scheduler | AsyncScheduler | None] = ContextVar(
+current_scheduler: ContextVar[Scheduler | None] = ContextVar(
"current_scheduler", default=None
)
-#: The worker running the current job
-current_worker: ContextVar[Worker | AsyncWorker | None] = ContextVar(
- "current_worker", default=None
+current_async_scheduler: ContextVar[AsyncScheduler | None] = ContextVar(
+ "current_async_scheduler", default=None
)
#: Metadata about the current job
current_job: ContextVar[JobInfo] = ContextVar("job_info")