Skip to content

Commit 06a6c46

Browse files
committed
Report exceptions thrown in defactivity
Signed-off-by: Greg Haskins <[email protected]>
1 parent f0ef8f3 commit 06a6c46

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/temporal/internal/activity.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
f (u/find-annotated-fn ::def activity-type)
6767
a (u/->args args)]
6868
(log/trace activity-id "calling" f "with args:" a)
69-
(result-> activity-id (f ctx a))))
69+
(try
70+
(result-> activity-id (f ctx a))
71+
(catch Exception e
72+
(log/error e)
73+
(throw e)))))
7074

7175
(defn dispatcher [ctx]
7276
(reify DynamicActivity

0 commit comments

Comments
 (0)