thoth.ingestion.singletons¶
Singleton management for ingestion worker services.
This module provides singleton instances for shared services to avoid circular imports between worker.py and flows modules.
Functions
Return the global JobManager singleton (creates on first call). |
|
Return the global SourceRegistry singleton (creates on first call). |
|
Return the global TaskQueueClient singleton (creates on first call). |
Classes
|
Manages job state in Firestore. |
|
Registry for managing data source configurations. |
|
Client for enqueueing tasks to Cloud Tasks. |
- thoth.ingestion.singletons.get_source_registry() SourceRegistry[source]¶
Return the global SourceRegistry singleton (creates on first call).
- Returns:
SourceRegistry instance.
- thoth.ingestion.singletons.get_job_manager() JobManager[source]¶
Return the global JobManager singleton (creates on first call).
- Returns:
JobManager instance.
- thoth.ingestion.singletons.get_task_queue() TaskQueueClient[source]¶
Return the global TaskQueueClient singleton (creates on first call).
- Returns:
TaskQueueClient instance (reads queue config from env).