ogdc_runner.service.main module¶
Basic service interface for the ogdc-runner.
This service sits between a user’s recipe and the Argo workflows service that does the work a user’s recipe requests. The service translates the user recipe into one or more Argo workflows that are executed.
- class ogdc_runner.service.main.VersionResponse(**data: Any) None¶
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- ogdc_runner.service.main.lifespan(_app: fastapi.FastAPI)¶
Lifespan context manager for the FastAPI app.
See: https://fastapi.tiangolo.com/advanced/events/#lifespan-function
Ensures database tables are created.
Code before the yield happens before the server is ready to take requests. Code after the yield happens as a final step as the server is shutdown.
- Parameters:
_app (
FastAPI)
- ogdc_runner.service.main.version() VersionResponse¶
Return the OGDC runner version.
- Return type: