Skip to content

Add Ruby examples for Task Queue Priority - #5812

Open
juuh42dias wants to merge 1 commit into
temporalio:mainfrom
juuh42dias:add-ruby-priority-examples
Open

juuh42dias wants to merge 1 commit into
temporalio:mainfrom
juuh42dias:add-ruby-priority-examples

Conversation

@juuh42dias

Copy link
Copy Markdown

Adds Ruby snippets to the priority-key examples on the Task Queue Priority and Fairness page.

  • Workflow: client.start_workflow with Temporalio::Priority.new(priority_key: 1)
  • Activity: client.start_activity with Temporalio::Priority.new(priority_key: 3)
  • Child Workflow: Temporalio::Workflow.start_child_workflow with Temporalio::Priority.new(priority_key: 1)

These mirror the existing Ruby fairness examples so the Priority and Fairness sections stay consistent. No other content changes.

Notes to reviewers

  • The page already had Ruby tabs for the Fairness examples; this fills the gap in the Priority sections, where Ruby was missing.
  • Snippets were checked against the Ruby SDK (Client#start_workflow, Client#start_activity, Temporalio::Workflow.start_child_workflow, and Temporalio::Priority).
  • The Activity example follows the existing standalone Activity pattern, including the required id and a timeout.

Add Workflow, Activity, and Child Workflow Ruby snippets to the
priority-key sections, matching the existing Ruby fairness examples.
@juuh42dias
juuh42dias requested a review from a team as a code owner November 24, 2026 20:41
Copilot AI balanced review requested due to automatic review settings November 24, 2026 20:41
@vercel

vercel Bot commented Nov 24, 2026

Copy link
Copy Markdown

@juuh42dias is attempting to deploy a commit to the Temporal Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant

CLAassistant commented Nov 24, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the added Ruby priority-key examples and accompanying usage guidance.

No open issues 🎉

What changed in this PR

Adds Ruby priority-key examples to the Task Queue Priority and Fairness guide, complementing its existing Ruby fairness examples.

Changes:

  • Adds Ruby examples for starting a Workflow, standalone Activity, and Child Workflow with priority keys.
  • Clarifies the standalone Activity timeout requirement and where to run the Child Workflow example.
File Description
docs/​develop/​task-queue-priority-fairness.mdx Adds three Ruby priority examples and brief usage guidance.

Review effort: Balanced

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
temporal-documentation Ready Ready Preview Nov 24, 2026 9:26pm UTC

Request Review

@Duncanma

Duncanma commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Hey @juuh42dias, this is a great PR, appreciate it. We just need you to go through and sign the contributor agreement before we can merge. Thanks!

@juuh42dias

Copy link
Copy Markdown
Author

Hey @juuh42dias, this is a great PR, appreciate it. We just need you to go through and sign the contributor agreement before we can merge. Thanks!

done ✔️

This branch was successfully deployed

1 active deployment
Preview — 32942fa2 Deployed Nov 24, 2026 by vercel[bot]
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.

4 participants