Support Nginx-authenticated OpenClaw and fix workflow retry start context
This commit is contained in:
@@ -28,7 +28,7 @@ export async function runTaskWorkflow(taskId: string) {
|
||||
|
||||
if (nextState.shouldRetry) {
|
||||
await sleep('1200ms');
|
||||
await start(runTaskWorkflow, [task.id]);
|
||||
await restartTaskWorkflowStep(task.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -52,3 +52,8 @@ async function markTaskFailureStep(taskId: string, reason: string) {
|
||||
'use step';
|
||||
return await markTaskFailure(taskId, reason);
|
||||
}
|
||||
|
||||
async function restartTaskWorkflowStep(taskId: string) {
|
||||
'use step';
|
||||
await start(runTaskWorkflow, [taskId]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user