payals
July 30, 2020, 11:33pm
1
Could you please explain this: The tasktimeout keeps getting set to 1m and the workflowrRunTimeout is set to 100h.
logger.info(“Starting Workflow with workflowid {}”, workflowId);
WorkflowOptions workflowOptions = null;
try {
workflowOptions =
WorkflowOptions.newBuilder()
.setTaskQueue(xxxxx)
.setWorkflowTaskTimeout(Duration.ofHours(100))
.setWorkflowExecutionTimeout(Duration.ofHours(100))
.setWorkflowId(workflowId)
1 Like
ryland
July 30, 2020, 11:35pm
3
Hey payals, thanks for taking the time to ask a question on our forum. I’ll going to tag someone who can provide some practical advice.
maxim
July 30, 2020, 11:37pm
4
Having 100h timeout for the workflow task is a clear programming mistake. That’s why the service overrides it to a more meaningful 1 minute.
payals
July 30, 2020, 11:55pm
5
.setWorkflowTaskTimeout(Duration.ofHours(3))
.setWorkflowExecutionTimeout(Duration.ofHours(10))
What are good values in your opinion - assuming, I’d like my activity to be retried 10000 times in case of failure , and the workflow to stop after 28 days.
maxim
July 30, 2020, 11:57pm
7
Set activity retry policy to whatever makes sense with max retries equal 10k. Then set the activity ScheduleToClose timeout to 28 days.
And keep the workflowTaskTimeout around 10 seconds.