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
write!(f,"Execution is suspended, but the handler is still attempting to make progress (calling '{event}'). This can happen:
763
+
764
+
* If the SuspendedException is caught. Make sure you NEVER catch the SuspendedException, e.g. avoid:
765
+
try:
766
+
# Code
767
+
except:
768
+
# This catches all exceptions, including the SuspendedException!
769
+
770
+
And use instead:
771
+
try:
772
+
# Code
773
+
except TerminalException:
774
+
# In Restate handlers you typically want to catch TerminalException
775
+
776
+
Check https://docs.restate.dev/develop/python/durable-steps#run for more details on run error handling.
777
+
778
+
* If you use the context after the handler completed, e.g. moving the context to another thread. Check https://docs.restate.dev/develop/python/concurrent-tasks for more details on how to create durable concurrent tasks in Python.")
0 commit comments