temporalio / samples-php

Temporal PHP SDK samples
Other
88 stars 40 forks source link

CronSchedule cannot be used because WorkflowStartDelay is always sent to server #46

Closed sse-futureplc closed 8 months ago

sse-futureplc commented 8 months ago

What are you really trying to do?

I'm trying to start a workflow execution with CronSchedule set with SDK 2.7.2

Describe the bug

When CronSchedule is configured for a workflow, the server rejects the start request with error "CronSchedule and WorkflowStartDelay may not be used together"

Screenshot 2024-01-15 at 15 31 25

Minimal Reproduction

Execute the Cron sample in php-samples, no need for any modification.

Environment/Versions

Additional context

What I think is happening:

In Go SDK they check if WorkflowStartDelay is not zero and only send it if it is not. PHP SDK sends it on every request, so when CronSchedule is set as well, the server rejects the request.

sse-futureplc commented 8 months ago

closed because of wrong account and repo used, sorry :)