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
Copy file name to clipboardExpand all lines: dbos/_dbos.py
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -211,6 +211,10 @@ def register_poller(
211
211
defregister_instance(self, inst: object) ->None:
212
212
config_name=getattr(inst, "config_name")
213
213
class_name=_class_fqn(inst.__class__)
214
+
ifself.dbosandself.dbos._launched:
215
+
dbos_logger.warning(
216
+
f"Configured instance {config_name} of class {class_name} was registered after DBOS was launched. This may cause errors during workflow recovery. All configured instances should be instantiated before DBOS is launched."
0 commit comments