-
Notifications
You must be signed in to change notification settings - Fork 123
feat: Priority annotations #1669
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
feat: Priority annotations #1669
Conversation
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.
Thanks! Just some minor stuff
packages/test/src/helpers.ts
Outdated
// TODO: Remove after next CLI release | ||
export const TESTS_CLI_VERSION = inWorkflowContext() ? '' : 'v1.3.1-priority.0'; |
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.
This should be done by just setting the env var in the GH workflows. See here: https://github.com/temporalio/sdk-typescript/pull/1679/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fR22
@@ -122,6 +123,11 @@ export interface ActivityOptions { | |||
* @experimental The Worker Versioning API is still being designed. Major changes are expected. | |||
*/ | |||
versioningIntent?: VersioningIntent; | |||
|
|||
/** | |||
* Priority of an activity |
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.
* Priority of an activity | |
* Priority of this activity |
packages/activity/src/index.ts
Outdated
@@ -198,6 +198,10 @@ export interface Info { | |||
* For Local Activities, this is set to the Workflow's Task Queue. | |||
*/ | |||
readonly taskQueue: string; | |||
/** | |||
* Priority of an Activity |
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.
* Priority of an Activity | |
* Priority of this Activity |
packages/workflow/src/interfaces.ts
Outdated
@@ -183,6 +184,11 @@ export interface WorkflowInfo { | |||
readonly currentBuildId?: string; | |||
|
|||
readonly unsafe: UnsafeWorkflowInfo; | |||
|
|||
/** | |||
* Priority of a workflow |
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.
* Priority of a workflow | |
* Priority of this workflow |
What was changed
Added priority settings on workflow, child workflow, and activities. Also updated tests to use CLI `v1.3.1-priority.0', until a new CLI release contains priority support.
Why?
priorities
Checklist
Closes [Feature Request] Support Priority Annotations #1620
How was this tested:
Added integration tests