Skip to content

Commit 0ac4fa4

Browse files
Bailey Kocinghaskins
authored andcommitted
remove the default options for child workflows and fall back to the JavaSDK workflow defaults
Signed-off-by: Bailey Kocin <[email protected]>
1 parent 585e327 commit 0ac4fa4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/temporal/internal/child_workflow.clj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030
:cancellation-type #(.setCancellationType ^ChildWorkflowOptions$Builder %1 (cancellation-type-> %2))
3131
:memo #(.setMemo ^ChildWorkflowOptions$Builder %1 %2)})
3232

33-
(defn import-child-workflow-options
34-
[{:keys [workflow-run-timeout workflow-execution-timeout] :as options}]
35-
(cond-> options
36-
(every? nil? [workflow-run-timeout workflow-execution-timeout])
37-
(assoc :workflow-execution-timeout (Duration/ofSeconds 10))))
38-
3933
(defn child-workflow-options->
4034
^ChildWorkflowOptions [options]
41-
(u/build (ChildWorkflowOptions/newBuilder) child-workflow-option-spec (import-child-workflow-options options)))
35+
(u/build (ChildWorkflowOptions/newBuilder) child-workflow-option-spec options))

0 commit comments

Comments
 (0)