Support Nginx-authenticated OpenClaw and fix workflow retry start context

This commit is contained in:
2026-02-27 11:42:50 -05:00
parent 7c3836068f
commit 73d9ccafd6
4 changed files with 114 additions and 12 deletions

View File

@@ -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]);
}