Skip to content

Add guide for migrating Sidekiq job queues to Standalone Activities - #5202

Draft
brianmacdonald-temporal wants to merge 2 commits into
mainfrom
sidekiq-to-standalone-activity
Draft

Add guide for migrating Sidekiq job queues to Standalone Activities#5202
brianmacdonald-temporal wants to merge 2 commits into
mainfrom
sidekiq-to-standalone-activity

Conversation

@brianmacdonald-temporal

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a Ruby guide, Migrate a Sidekiq job queue to a Temporal Standalone Activity, that walks through converting a Sidekiq job into a Standalone Activity:

  • Maps Sidekiq concepts (job, sidekiq process, Redis, perform_async, sidekiq_options retry:, Web UI) onto their Temporal equivalents
  • Runs an Activity-only Worker with no Workflow code
  • Replaces perform_async with client.start_activity(), and adds a return value via client.execute_activity() — something Sidekiq's fire-and-forget model can't provide
  • Migrates sidekiq_options retry: N to a Retry Policy (with the total-attempts vs. retries adjustment: retry: 5 -> max_attempts: 6)
  • Uses client.list_activities() and client.count_activities() in place of the Sidekiq Web UI

Also links the page from the Guides sidebar and adds a card to the Guides landing-page grid under the existing Migration tag.

Notes to reviewers

Opened as a draft: the guide documents Standalone Activities, which are publicPreview in src/constants/featureReleaseTypes.js.

All Temporal doc links are relative to satisfy Temporal.RelativeLinks. Sidekiq-specific external links (sidekiq.org) remain absolute.

Two review conventions from #5135 are already applied: core identifiers use Id (Activity Id, Run Id) with generic "user identifier", and product name is "Temporal Service".

Copilot AI balanced review requested due to automatic review settings August 28, 2026 21:12
@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
temporal-documentation Ready Ready Preview Aug 28, 2026 9:14pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

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.

Pull request overview

Adds a Ruby migration guide for converting Sidekiq jobs into Temporal Standalone Activities.

Changes:

  • Adds the Sidekiq migration tutorial.
  • Adds the guide to sidebar navigation.
  • Adds a Ruby migration card to the Guides grid.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
docs/guides/sidekiq-to-standalone-activity.mdx Adds the migration guide.
sidebars.js Adds sidebar navigation.
src/components/GuidesGrid/guides-data.json Adds the guide card.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

id: sidekiq-to-standalone-activity
title: Migrate a Sidekiq job queue to a Temporal Standalone Activity
sidebar_label: Migrate from Sidekiq
description: Migrate Sidekiq background jobs to a Temporal Standalone Activity.
- The Temporal CLI, version 1.7.0 or higher (installed in Step 2).
- An existing Sidekiq job you want to migrate, or the sample job shown in Step 4 if you are following along from scratch.

## Step 1: Set up your project directory
Comment on lines +6 to +12
keywords:
- sidekiq
- standalone activities
- ruby
- migration
- background jobs
- temporal

## Conclusion

In this tutorial, you migrated a Sidekiq job to a Temporal Standalone Activity. You converted the job into an Activity, ran a Worker to execute it, started it fire-and-forget in place of `perform_async`, retrieved a return value that Sidekiq could never give you, replaced `sidekiq_options retry:` with a Retry Policy, and inspected your Activities in place of the Sidekiq Web UI — all without writing a single Workflow. Your jobs now survive Worker crashes, retry on well-defined policies, and remain queryable through the client and Web UI.
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.

2 participants