Skip to content

Conversation

@benjaminpetit
Copy link
Member

@benjaminpetit benjaminpetit commented Nov 20, 2025

Related issue: #9750

Microsoft Reviewers: Open in CodeFlow

Copilot AI review requested due to automatic review settings November 20, 2025 13:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR renames the interface IDurableJobContext to IDurableJobRun and the implementation class DurableJobContext to DurableJobRun throughout the Orleans durable jobs codebase. This is a refactoring change to improve naming consistency and better reflect the domain concept.

  • Updates the interface, implementation class, and all references across test code, implementation code, and documentation
  • Renames related methods like GetJobContext to GetJobRun and GetFinalJobContext to GetFinalJobRun
  • Updates XML documentation comments to reference the new type names

Reviewed Changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/Tester/DurableJobs/DurableJobTestsRunner.cs Updated test calls to use renamed GetJobRun and GetFinalJobRun methods
test/NonSilo.Tests/ScheduledJobs/InMemoryJobQueueTests.cs Updated list types and mock object creation to use IDurableJobRun
test/Grains/TestGrains/RetryTestGrain.cs Updated field types, method signatures, and return types to use IDurableJobRun
test/Grains/TestGrains/DurableJobGrain.cs Updated dictionary field types and method signatures to use IDurableJobRun
test/Grains/TestGrainInterfaces/IRetryTestGrain.cs Updated interface method return type to use IDurableJobRun
test/Grains/TestGrainInterfaces/IDurableJobGrain.cs Updated interface method return type to use IDurableJobRun
src/Orleans.DurableJobs/ShardExecutor.cs Updated parameter type to use IDurableJobRun
src/Orleans.DurableJobs/README.md Updated documentation examples to use IDurableJobRun in method signatures
src/Orleans.DurableJobs/JobShard.cs Updated interface and implementation to use IDurableJobRun in return types and parameters
src/Orleans.DurableJobs/InMemoryJobQueue.cs Updated class signature, method signatures, and object instantiation to use IDurableJobRun and DurableJobRun
src/Orleans.DurableJobs/IDurableJobReceiverExtension.cs Updated method parameter types to use IDurableJobRun
src/Orleans.DurableJobs/IDurableJobHandler.cs Renamed interface from IDurableJobContext to IDurableJobRun, renamed class from DurableJobContext to DurableJobRun, and updated all documentation references
src/Orleans.DurableJobs/Hosting/DurableJobsOptions.cs Updated function delegate types to use IDurableJobRun
src/Dashboard/Orleans.Dashboard.App/package-lock.json Added "peer": true flags to multiple package entries (unrelated change)
Files not reviewed (1)
  • src/Dashboard/Orleans.Dashboard.App/package-lock.json: Language not supported

@benjaminpetit benjaminpetit changed the title Rename IDurableJobContext to IDurableJobRun Rename IDurableJobContext to IJobRunContext Nov 24, 2025
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