Skip to content

Commit

Permalink
Limit workflow timeout to a range of 1 to 300 seconds
Browse files Browse the repository at this point in the history
Signed-off-by: Junwei Dai <[email protected]>

# Conflicts:
#	src/main/java/org/opensearch/flowframework/util/WorkflowTimeoutUtility.java
  • Loading branch information
Junwei Dai committed Jan 13, 2025
1 parent 38466d4 commit 84f829c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.opensearch.flowframework.transport.GetWorkflowStateAction;
import org.opensearch.flowframework.transport.GetWorkflowStateRequest;
import org.opensearch.flowframework.transport.WorkflowResponse;
import org.opensearch.search.aggregations.metrics.Min;
import org.opensearch.threadpool.Scheduler;
import org.opensearch.threadpool.ThreadPool;

Expand All @@ -34,6 +33,7 @@ public class WorkflowTimeoutUtility {
private static final Logger logger = LogManager.getLogger(WorkflowTimeoutUtility.class);
private static final TimeValue MAX_TIMEOUT_MILLIS = TimeValue.timeValueSeconds(300);
private static final TimeValue MIN_TIMEOUT_MILLIS = TimeValue.timeValueSeconds(1);

/**
* Schedules a timeout task for a workflow execution.
*
Expand Down

0 comments on commit 84f829c

Please sign in to comment.