temporal-clojure-sdk icon indicating copy to clipboard operation
temporal-clojure-sdk copied to clipboard

Support StartDelay on WorkflowOptions

Open thenonameguy opened this issue 10 months ago • 1 comments

See https://github.com/temporalio/sdk-java/pull/1897

thenonameguy avatar Jan 09 '25 16:01 thenonameguy

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.

ghaskins avatar Feb 04 '25 21:02 ghaskins

Is there any chance that this is going to be supported soon?

raszi avatar Jul 27 '25 13:07 raszi

I haven't had time to spend on it, but PRs welcome. Just need to add tests in addition to the above.

ghaskins avatar Jul 27 '25 13:07 ghaskins

Thank you! We'll take a look at it this week.

raszi avatar Jul 27 '25 18:07 raszi