From 10707517cd53fed032b3b9365d062b4e38b9c075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Ramos?= <38315233+AnraGit@users.noreply.github.com> Date: Thu, 12 Mar 2026 19:12:58 +0100 Subject: [PATCH] Use TotalSeconds instead of Seconds when setting WAIT task duration Replaced the use of TimeSpan.Seconds with TimeSpan.TotalSeconds to ensure the WAIT task receives the full duration in seconds rather than only the seconds component of the TimeSpan. This prevents incorrect durations when the TimeSpan spans minutes, hours, or longer intervals. --- Conductor/Definition/TaskType/WaitTask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Conductor/Definition/TaskType/WaitTask.cs b/Conductor/Definition/TaskType/WaitTask.cs index 6da0bc1f..a9cc925e 100644 --- a/Conductor/Definition/TaskType/WaitTask.cs +++ b/Conductor/Definition/TaskType/WaitTask.cs @@ -22,7 +22,7 @@ public class WaitTask : Task public WaitTask(string taskReferenceName, TimeSpan duration) : base(taskReferenceName, WorkflowTask.WorkflowTaskTypeEnum.WAIT) { - WithInput(DURATION_PARAMETER, duration.Seconds.ToString() + "s"); + WithInput(DURATION_PARAMETER, duration.TotalSeconds.ToString() + "s"); } public WaitTask(string taskReferenceName, DateTime until) : base(taskReferenceName, WorkflowTask.WorkflowTaskTypeEnum.WAIT)