Skip to content

Commit ed2f64c

Browse files
committed
comment
1 parent 3607d0f commit ed2f64c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dbos/dbos.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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.
433434
func (c *dbosContext) Shutdown(timeout time.Duration) {
434435
c.logger.Info("Shutting down DBOS context")
435436

0 commit comments

Comments
 (0)