Skip to content

Commit

Permalink
allow the declaration of setup steps (#166)
Browse files Browse the repository at this point in the history
Update config schema to allow the declaration of setup steps.

Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
maxdml and Ubuntu authored Dec 12, 2024
1 parent d6c6ac6 commit c823f7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions dbos/_dbos_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

class RuntimeConfig(TypedDict, total=False):
start: List[str]
setup: Optional[List[str]]
admin_port: Optional[int]


Expand Down
7 changes: 7 additions & 0 deletions dbos/dbos-config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@
"type": "array",
"description": "Specify commands to run to start your application (Python only)"
},
"setup": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to setup the application execution environment"
},
"admin_port": {
"type": "number",
"description": "The port number of the admin server (Default: 3001)"
Expand Down

0 comments on commit c823f7b

Please sign in to comment.