From 7e673265d5a35b48878e729e1b6d350bdad2b89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Stenr=C3=B8jl?= Date: Fri, 20 Dec 2024 17:49:16 +0100 Subject: [PATCH] Allow resetting RecurringCronExpression --- .../Domain/OrchestrationDescription/OrchestrationDescription.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ProcessManager.Core/Domain/OrchestrationDescription/OrchestrationDescription.cs b/source/ProcessManager.Core/Domain/OrchestrationDescription/OrchestrationDescription.cs index 9416b17e..35e69b0a 100644 --- a/source/ProcessManager.Core/Domain/OrchestrationDescription/OrchestrationDescription.cs +++ b/source/ProcessManager.Core/Domain/OrchestrationDescription/OrchestrationDescription.cs @@ -87,7 +87,7 @@ public string RecurringCronExpression { if (value != _recurringCronExpression) { - if (CrontabSchedule.TryParse(value) == null) + if (value != string.Empty && CrontabSchedule.TryParse(value) == null) throw new ArgumentOutOfRangeException($"Invalid cron value '{value}'. See https://github.com/atifaziz/NCrontab/wiki/Crontab-Expression for expected format."); _recurringCronExpression = value;