Implement a startup script which runs once on microservice start.
This commit is contained in:
@@ -33,10 +33,20 @@ class ProcessFn(Protocol):
|
||||
) -> Generator[tuple[int, CaseVariable], None, None]: ...
|
||||
|
||||
|
||||
class StartupFn(Protocol):
|
||||
def __call__(
|
||||
self,
|
||||
read_file: ReadFileFn,
|
||||
write_file: WriteFileFn,
|
||||
connection: SqlAlchemyConnection,
|
||||
) -> Generator[tuple[int, CaseVariable], None, None]: ...
|
||||
|
||||
|
||||
__all__ = [
|
||||
"CaseVariable",
|
||||
"ReadFileFn",
|
||||
"WriteHandle",
|
||||
"WriteFileFn",
|
||||
"ProcessFn",
|
||||
"StartupFn",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user