Skip to content

Commit c823f7b

Browse files
maxdmlUbuntu
andauthored
allow the declaration of setup steps (#166)
Update config schema to allow the declaration of setup steps. Co-authored-by: Ubuntu <[email protected]>
1 parent d6c6ac6 commit c823f7b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dbos/_dbos_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
class RuntimeConfig(TypedDict, total=False):
1616
start: List[str]
17+
setup: Optional[List[str]]
1718
admin_port: Optional[int]
1819

1920

dbos/dbos-config.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@
144144
"type": "array",
145145
"description": "Specify commands to run to start your application (Python only)"
146146
},
147+
"setup": {
148+
"type": "array",
149+
"items": {
150+
"type": "string"
151+
},
152+
"description": "Commands to setup the application execution environment"
153+
},
147154
"admin_port": {
148155
"type": "number",
149156
"description": "The port number of the admin server (Default: 3001)"

0 commit comments

Comments
 (0)