-
Notifications
You must be signed in to change notification settings - Fork 127
Workflow Pause #3114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Workflow Pause #3114
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| !!page.data.namespace.namespaceInfo?.capabilities?.workflowPause, | ||
| ); | ||
| const getResetDescription = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Binding element 'resetAuthorized' implicitly has an 'any' type.
| ); | ||
| const getResetDescription = ({ | ||
| resetAuthorized, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Binding element 'canResetWithPendingChildWorkflows' implicitly has an 'any' type.
| const getResetDescription = ({ | ||
| resetAuthorized, | ||
| canResetWithPendingChildWorkflows, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Binding element 'resetEvents' implicitly has an 'any' type.
| id: 'workflow-pause-success-toast', | ||
| message: translate('workflows.pause-success'), | ||
| }); | ||
| } catch (err: unknown) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Type 'string | undefined' is not assignable to type 'string'.
| id: 'workflow-unpause-success-toast', | ||
| message: translate('workflows.unpause-success'), | ||
| }); | ||
| } catch (err: unknown) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Type 'string | undefined' is not assignable to type 'string'.
| ); | ||
| const workflowPaused = $derived(workflow?.status === 'Paused'); | ||
| const resetRunId = $derived( | ||
| workflow.workflowExtendedInfo?.resetRunId || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Type 'undefined' cannot be used as an index type.
| ) { | ||
| const formattedReason = formatReason({ | ||
| action: Action.Pause, | ||
| reason, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Type 'string | undefined' is not assignable to type 'string'.
| ) { | ||
| const formattedReason = formatReason({ | ||
| action: Action.Unpause, | ||
| reason, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Type 'string | undefined' is not assignable to type 'string'.
| 'worker-task-reachability': `/namespaces/${parameters?.namespace}/worker-task-reachability`, | ||
| 'workflow.terminate': `/namespaces/${parameters?.namespace}/workflows/${parameters?.workflowId}/terminate`, | ||
| 'workflow.cancel': `/namespaces/${parameters.namespace}/workflows/${parameters.workflowId}/cancel`, | ||
| 'workflow.signal': `/namespaces/${parameters.namespace}/workflows/${parameters.workflowId}/signal/${parameters.signalName}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ 'parameters' is possibly 'undefined'.⚠️ 'parameters' is possibly 'undefined'.⚠️ 'parameters' is possibly 'undefined'.
| 'workflow.terminate': `/namespaces/${parameters?.namespace}/workflows/${parameters?.workflowId}/terminate`, | ||
| 'workflow.cancel': `/namespaces/${parameters.namespace}/workflows/${parameters.workflowId}/cancel`, | ||
| 'workflow.signal': `/namespaces/${parameters.namespace}/workflows/${parameters.workflowId}/signal/${parameters.signalName}`, | ||
| 'workflow.update': `/namespaces/${parameters.namespace}/workflows/${parameters.workflowId}/update/${parameters.updateName}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ 'parameters' is possibly 'undefined'.⚠️ 'parameters' is possibly 'undefined'.
|
Description & motivation 💭
Screenshots (if applicable) 📸
Design Considerations 🎨
Testing 🧪
How was this tested 👻
Steps for others to test: 🚶🏽♂️🚶🏽♀️
With
namespaceInfo>capabilities>workflowPauseenabled > go to aRunningworkflow > selectPause Workflow> enter a reason and confirmPausedSelect
Unpause Workflow> enter a reason and confirmChecklists
Draft Checklist
Merge Checklist
Issue(s) closed
DT-3566Docs
Any docs updates needed?