File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -428,8 +428,9 @@ func (c *dbosContext) Cancel(timeout time.Duration) {
428428// Shutdown gracefully shuts down the DBOS runtime by canceling the context, waiting for
429429// all workflows to complete, and cleaning up system resources including the database
430430// connection pool, queue runner, workflow scheduler, and admin server.
431- // This method blocks until all workflows finish and all resources are properly cleaned up.
432- // It should be called when the application is shutting down to ensure data consistency.
431+ // This method blocks until all workflows finish and all resources are properly cleaned up,
432+ // up to a configurable timeout.
433+ // Shutdown is a permanent operation and should be called when the application is shutting down.
433434func (c * dbosContext ) Shutdown (timeout time.Duration ) {
434435 c .logger .Info ("Shutting down DBOS context" )
435436
You can’t perform that action at this time.
0 commit comments