Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /InferiaAI_InferiaLLM /src /startup_events.py
| from dataclasses import dataclass | |
| from enum import Enum | |
| from typing import Optional | |
| class ServiceStatus(str, Enum): | |
| STARTING = "starting" | |
| STARTED = "started" | |
| FAILED = "failed" | |
| class StartupEvent: | |
| service: str | |
| status: ServiceStatus | |
| detail: Optional[str] = None | |
| error: Optional[str] = None | |
| message: Optional[str] = None | |
| class ServiceStarting(StartupEvent): | |
| def __init__(self, service: str): | |
| super().__init__(service, ServiceStatus.STARTING) | |
| class ServiceStarted(StartupEvent): | |
| def __init__(self, service: str, detail: str = ""): | |
| super().__init__(service, ServiceStatus.STARTED, detail=detail) | |
| class ServiceFailed(StartupEvent): | |
| def __init__(self, service: str, error: str): | |
| super().__init__(service, ServiceStatus.FAILED, error=error) |
Xet Storage Details
- Size:
- 825 Bytes
- Xet hash:
- 9e234c093c3702944536315d5136a495a2dd4b8c8c01980be0869c11e2843ee8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.