You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- print scheduled workflows schedules
- fix bug in test
- wait for workflows to complete in shutdown
- fix GetResult() error handling
- Handle errors in admin server
- move global variables in singleton
- fix `processConfig` now that app name and db url are mandatory
returnnewInitializationError(fmt.Sprintf("failed to create system database: %v", err))
136
123
}
124
+
initExecutor.systemDB=systemDB
137
125
logger.Info("System database initialized")
138
126
139
127
// Set the global dbos instance
140
-
dbos=&executor{
141
-
config: config,
142
-
systemDB: systemDB,
143
-
}
128
+
dbos=initExecutor
144
129
145
130
returnnil
146
131
}
@@ -184,15 +169,15 @@ func Launch() error {
184
169
}
185
170
186
171
// Run a round of recovery on the local executor
187
-
recoveryHandles, err:=recoverPendingWorkflows(context.Background(), []string{_EXECUTOR_ID}) // XXX maybe use the queue runner context here to allow Shutdown to cancel it?
172
+
recoveryHandles, err:=recoverPendingWorkflows(context.Background(), []string{dbos.executorID}) // XXX maybe use the queue runner context here to allow Shutdown to cancel it?
188
173
iferr!=nil {
189
174
returnnewInitializationError(fmt.Sprintf("failed to recover pending workflows during launch: %v", err))
0 commit comments