Disable rerun when v2 task is used (#1657)

This commit is contained in:
Shuchang Zheng
2025-01-27 22:12:02 +08:00
committed by GitHub
parent f01502bdde
commit b40c802576

View File

@@ -126,6 +126,8 @@ function WorkflowRun() {
}); });
} }
const isTaskv2Run = workflowRun && workflowRun.observer_task !== null;
return ( return (
<div className="space-y-8"> <div className="space-y-8">
<header className="flex justify-between"> <header className="flex justify-between">
@@ -211,7 +213,7 @@ function WorkflowRun() {
</DialogContent> </DialogContent>
</Dialog> </Dialog>
)} )}
{workflowRunIsFinalized && ( {workflowRunIsFinalized && !isTaskv2Run && (
<Button asChild> <Button asChild>
<Link <Link
to={`/workflows/${workflowPermanentId}/run`} to={`/workflows/${workflowPermanentId}/run`}