Skip to content

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

Merged
merged 10 commits into from
Apr 18, 2025

Conversation

yuandrew
Copy link
Contributor

@yuandrew yuandrew commented Apr 3, 2025

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

  1. Closes [Feature Request] Support Priority Annotations #1620

  2. How was this tested:

Added integration tests

  1. Any docs updates needed?

yuandrew added 4 commits April 2, 2025 16:29
@yuandrew yuandrew changed the title [wip] priorities feat:Priority annotations Apr 7, 2025
@yuandrew yuandrew changed the title feat:Priority annotations feat: Priority annotations Apr 7, 2025
yuandrew and others added 5 commits April 7, 2025 13:28
@yuandrew yuandrew marked this pull request as ready for review April 7, 2025 21:52
@yuandrew yuandrew requested a review from a team as a code owner April 7, 2025 21:52
@yuandrew yuandrew requested a review from Sushisource April 7, 2025 21:52
Copy link
Member

@Sushisource Sushisource left a 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

Comment on lines 41 to 42
// TODO: Remove after next CLI release
export const TESTS_CLI_VERSION = inWorkflowContext() ? '' : 'v1.3.1-priority.0';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Priority of an activity
* Priority of this activity

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Priority of an Activity
* Priority of this Activity

@@ -183,6 +184,11 @@ export interface WorkflowInfo {
readonly currentBuildId?: string;

readonly unsafe: UnsafeWorkflowInfo;

/**
* Priority of a workflow
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Priority of a workflow
* Priority of this workflow

@yuandrew yuandrew enabled auto-merge (squash) April 18, 2025 20:44
@yuandrew yuandrew merged commit 58df441 into temporalio:main Apr 18, 2025
23 checks passed
@yuandrew yuandrew deleted the workflow-activity-priority-wip branch April 18, 2025 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants