temporal-clojure-sdk
temporal-clojure-sdk copied to clipboard
Support StartDelay on WorkflowOptions
See https://github.com/temporalio/sdk-java/pull/1897
I think the solution will be as simple as
diff --git a/src/temporal/internal/workflow.clj b/src/temporal/internal/workflow.clj
index 1d9c2cb..d1a1d5c 100644
--- a/src/temporal/internal/workflow.clj
+++ b/src/temporal/internal/workflow.clj
@@ -53,7 +53,8 @@
:retry-options #(.setRetryOptions %1 (common/retry-options-> %2))
:cron-schedule #(.setCronSchedule ^WorkflowOptions$Builder %1 %2)
:memo #(.setMemo ^WorkflowOptions$Builder %1 %2)
- :search-attributes #(.setSearchAttributes ^WorkflowOptions$Builder %1 %2)})
+ :search-attributes #(.setSearchAttributes ^WorkflowOptions$Builder %1 %2)
+ :start-delay #(.setStartDelay ^WorkflowOptions$Builder %1 %2)})
(defn ^:no-doc wf-options->
^WorkflowOptions [params]
But I need to develop a few unit-tests before this is merged.
Is there any chance that this is going to be supported soon?
I haven't had time to spend on it, but PRs welcome. Just need to add tests in addition to the above.
Thank you! We'll take a look at it this week.