Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify timeout on kicking off orchestration #427

Open
kvattikuti opened this issue Oct 4, 2024 · 2 comments
Open

Ability to specify timeout on kicking off orchestration #427

kvattikuti opened this issue Oct 4, 2024 · 2 comments
Labels
enhancement New feature or request P2 Priority 2

Comments

@kvattikuti
Copy link

kvattikuti commented Oct 4, 2024

We suddenly started getting timeouts when kicking off Orchestration with StartNewAsync but these timeouts happen after several seconds. I am hoping to fail fast....is there a configuration to control this timeout value?

Packages we are using now:

<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.2.0" />
<PackageReference Include="Microsoft.Azure.DurableTask.Netherite.AzureFunctions" Version="1.4.1" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.13.0" />
Message: Error, ExceptionMessage: "Client request timed out.", FullException: "System.TimeoutException: Client request timed out.
   at DurableTask.Netherite.Client.CreateTaskOrchestrationAsync(UInt32 partitionId, TaskMessage creationMessage, OrchestrationStatus[] dedupeStatuses) in /_/src/DurableTask.Netherite/OrchestrationService/Client.cs:line 469
   at DurableTask.Netherite.NetheriteOrchestrationService.DurableTask.Core.IOrchestrationServiceClient.CreateTaskOrchestrationAsync(TaskMessage creationMessage, OrchestrationStatus[] dedupeStatuses) in /_/src/DurableTask.Netherite/OrchestrationService/NetheriteOrchestrationService.cs:line 594
   at DurableTask.Core.TaskHubClient.InternalCreateOrchestrationInstanceWithRaisedEventAsync(String orchestrationName, String orchestrationVersion, String orchestrationInstanceId, Object orchestrationInput, IDictionary`2 orchestrationTags, OrchestrationStatus[] dedupeStatuses, String eventName, Object eventData, Nullable`1 startAt) in /_/src/DurableTask.Core/TaskHubClient.cs:line 622
   at Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableClient.Microsoft.Azure.WebJobs.Extensions.DurableTask.IDurableOrchestrationClient.StartNewAsync[T](String orchestratorFunctionName, String instanceId, T input) in D:\a\_work\1\s\src\WebJobs.Extensions.DurableTask\ContextImplementations\DurableClient.cs:line 215
@sebastianburckhardt
Copy link
Member

Based on what I see in the code (

public async Task CreateTaskOrchestrationAsync(uint partitionId, TaskMessage creationMessage, OrchestrationStatus[] dedupeStatuses)
) the default timeout is 5 minutes, and there does not seem to be any way to change that via configuration.

@anttix
Copy link

anttix commented Jan 22, 2025

That's a good find. Thanx @sebastianburckhardt .

Is there a plan to fix this either by making a timeout configurable or taking a cancellation token from the caller?

Thank you.

anttix pushed a commit to anttix/durabletask-netherite that referenced this issue Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 Priority 2
Projects
None yet
Development

No branches or pull requests

4 participants