Disable rerun when v2 task is used (#1657)
This commit is contained in:
@@ -126,6 +126,8 @@ function WorkflowRun() {
|
||||
});
|
||||
}
|
||||
|
||||
const isTaskv2Run = workflowRun && workflowRun.observer_task !== null;
|
||||
|
||||
return (
|
||||
<div className="space-y-8">
|
||||
<header className="flex justify-between">
|
||||
@@ -211,7 +213,7 @@ function WorkflowRun() {
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
)}
|
||||
{workflowRunIsFinalized && (
|
||||
{workflowRunIsFinalized && !isTaskv2Run && (
|
||||
<Button asChild>
|
||||
<Link
|
||||
to={`/workflows/${workflowPermanentId}/run`}
|
||||
|
||||
Reference in New Issue
Block a user