-
Notifications
You must be signed in to change notification settings - Fork 128
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.
|
|
| 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'.
| $refresh = Date.now(); | ||
| triggerRefresh(Action.Reset); | ||
| hideResetModal(); | ||
| } catch (err) { |
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'.
| ) => { | ||
| if (refresh && !pause && $workflowRun?.workflow?.isRunning) { | ||
| const shouldFetch = | ||
| refresh.timestamp && |
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.
⚠️ 'refresh.action' is possibly 'null'.
| response.workflowExecutionInfo.status, | ||
| ); | ||
| const isRunning = status === 'Running'; | ||
| const isPaused = status === 'Paused'; |
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.
⚠️ 'response' is possibly 'undefined'.⚠️ 'response.workflowExecutionInfo' is possibly 'undefined'.
| ); | ||
| const isRunning = status === 'Running'; | ||
| const isPaused = status === 'Paused'; | ||
| const historyEvents = response.workflowExecutionInfo.historyLength; |
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.
⚠️ 'response' is possibly 'undefined'.⚠️ 'response.workflowExecutionInfo' is possibly 'undefined'.
| parent, | ||
| stateTransitionCount, | ||
| isRunning, | ||
| isPaused, |
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 'Duration | undefined' is not assignable to type 'Duration'.
fdf8e6c to
1d394d2
Compare
| @@ -127,6 +137,7 @@ | |||
| <div class="xl:hidden"> | |||
| <WorkflowActions | |||
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 'boolean | undefined' is not assignable to type 'boolean'.
| @@ -127,6 +137,7 @@ | |||
| <div class="xl:hidden"> | |||
| <WorkflowActions | |||
| {isRunning} | |||
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 'boolean | undefined' is not assignable to type 'boolean'.
| <WorkflowActions | ||
| {isRunning} | ||
| {isPaused} | ||
| {cancelInProgress} |
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 'WorkflowExecution | null' is not assignable to type 'WorkflowExecution'.
| @@ -154,6 +165,7 @@ | |||
| <div class="max-xl:hidden"> | |||
| <WorkflowActions | |||
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 'boolean | undefined' is not assignable to type 'boolean'.
| @@ -154,6 +165,7 @@ | |||
| <div class="max-xl:hidden"> | |||
| <WorkflowActions | |||
| {isRunning} | |||
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 'boolean | undefined' is not assignable to type 'boolean'.
| <WorkflowActions | ||
| {isRunning} | ||
| {isPaused} | ||
| {cancelInProgress} |
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 'WorkflowExecution | null' is not assignable to type 'WorkflowExecution'.
| unhandledAction(action); | ||
| } | ||
|
|
||
| return translate('workflows.workflow-action-reason-placeholder', { |
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.
⚠️ Variable 'translatedAction' is used before being assigned.
Description & motivation 💭
Screenshots (if applicable) 📸
Design Considerations 🎨
Testing 🧪
How was this tested 👻
Steps for others to test: 🚶🏽♂️🚶🏽♀️
Run temporal server from a local build
truemake binsandmake starttemporal operator namespace create --namespace canarycanarynamespace, runtemporal operator search-attribute create --namespace default --name CustomKeywordField --type KeywordRun the UI against a local build of temporal server
workflow-pausebranch in the UI repocd server/ && make buildcd .. && pnpm dev:local-temporalRun some sample workflows in the canary-go repo
make binsand./temporal-canary startWith
namespaceInfo>capabilities>workflowPausedisabled > go to aRunningworkflowPause Workflowis not visibleWith
namespaceInfo>capabilities>workflowPauseenabled > go to aRunningworkflowPause Workflowis not visiblePause Workflowis not visiblePause Workflow> enter a reason and confirmPausedand button switches toUnpause WorkflowSelect
Unpause Workflow> enter a reason and confirmChecklists
Draft Checklist
Merge Checklist
Issue(s) closed
DT-3566Docs
Any docs updates needed?