Skip to content

[Nexus] Minor fixes - Added destination queue and schedule cancellati…#9790

Merged
bergundy merged 1 commit intonexus/hsm-to-chasm-migrationfrom
cg/nexus/fixes
Apr 6, 2026
Merged

[Nexus] Minor fixes - Added destination queue and schedule cancellati…#9790
bergundy merged 1 commit intonexus/hsm-to-chasm-migrationfrom
cg/nexus/fixes

Conversation

@gow
Copy link
Copy Markdown
Contributor

@gow gow commented Apr 2, 2026

What changed?

Minor fixes.

Why?

These were missing or misplaced previously.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Note

Medium Risk
Changes task routing and cancellation scheduling in the Nexus operation state machine, which can affect execution flow and delivery to outbound queues. While localized, incorrect destinations or transition sequencing could cause stuck or misrouted operations.

Overview
Ensures Nexus invocation tasks are routed to the correct outbound queue by setting TaskAttributes.Destination to the operation endpoint when scheduling and when rescheduling after backoff.

Moves the "cancellation already requested" handling from the workflow Started event handler into TransitionStarted, so pending cancellations are automatically scheduled as soon as an operation token becomes available.

Written by Cursor Bugbot for commit 4eddec6. This will update automatically on new commits. Configure here.

@gow gow requested review from a team as code owners April 2, 2026 17:01
@gow gow force-pushed the nexus/hsm-to-chasm-migration branch from 48c21b2 to 5c6bbd9 Compare April 3, 2026 16:58
@gow gow requested review from a team as code owners April 3, 2026 16:58
@gow gow force-pushed the cg/nexus/fixes branch from cd626d5 to 4eddec6 Compare April 3, 2026 16:59
@bergundy bergundy merged commit 851af03 into nexus/hsm-to-chasm-migration Apr 6, 2026
47 checks passed
@bergundy bergundy deleted the cg/nexus/fixes branch April 6, 2026 17:23
bergundy pushed a commit to bergundy/temporal that referenced this pull request Apr 7, 2026
temporalio#9790)

## What changed?
Minor fixes.

## Why?
These were missing or misplaced previously.

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)



<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes task routing and cancellation scheduling in the Nexus
operation state machine, which can affect execution flow and delivery to
outbound queues. While localized, incorrect destinations or transition
sequencing could cause stuck or misrouted operations.
> 
> **Overview**
> Ensures Nexus invocation tasks are routed to the correct outbound
queue by setting `TaskAttributes.Destination` to the operation endpoint
when scheduling and when rescheduling after backoff.
> 
> Moves the "cancellation already requested" handling from the workflow
`Started` event handler into `TransitionStarted`, so pending
cancellations are automatically scheduled as soon as an operation token
becomes available.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4eddec6. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
bergundy pushed a commit to bergundy/temporal that referenced this pull request Apr 7, 2026
temporalio#9790)

## What changed?
Minor fixes.

## Why?
These were missing or misplaced previously.

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)



<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes task routing and cancellation scheduling in the Nexus
operation state machine, which can affect execution flow and delivery to
outbound queues. While localized, incorrect destinations or transition
sequencing could cause stuck or misrouted operations.
> 
> **Overview**
> Ensures Nexus invocation tasks are routed to the correct outbound
queue by setting `TaskAttributes.Destination` to the operation endpoint
when scheduling and when rescheduling after backoff.
> 
> Moves the "cancellation already requested" handling from the workflow
`Started` event handler into `TransitionStarted`, so pending
cancellations are automatically scheduled as soon as an operation token
becomes available.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4eddec6. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
bergundy pushed a commit that referenced this pull request Apr 8, 2026
#9790)

## What changed?
Minor fixes.

## Why?
These were missing or misplaced previously.

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)



<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes task routing and cancellation scheduling in the Nexus
operation state machine, which can affect execution flow and delivery to
outbound queues. While localized, incorrect destinations or transition
sequencing could cause stuck or misrouted operations.
> 
> **Overview**
> Ensures Nexus invocation tasks are routed to the correct outbound
queue by setting `TaskAttributes.Destination` to the operation endpoint
when scheduling and when rescheduling after backoff.
> 
> Moves the "cancellation already requested" handling from the workflow
`Started` event handler into `TransitionStarted`, so pending
cancellations are automatically scheduled as soon as an operation token
becomes available.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4eddec6. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
bergundy pushed a commit that referenced this pull request Apr 9, 2026
#9790)

## What changed?
Minor fixes.

## Why?
These were missing or misplaced previously.

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)



<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes task routing and cancellation scheduling in the Nexus
operation state machine, which can affect execution flow and delivery to
outbound queues. While localized, incorrect destinations or transition
sequencing could cause stuck or misrouted operations.
> 
> **Overview**
> Ensures Nexus invocation tasks are routed to the correct outbound
queue by setting `TaskAttributes.Destination` to the operation endpoint
when scheduling and when rescheduling after backoff.
> 
> Moves the "cancellation already requested" handling from the workflow
`Started` event handler into `TransitionStarted`, so pending
cancellations are automatically scheduled as soon as an operation token
becomes available.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4eddec6. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
bergundy pushed a commit that referenced this pull request Apr 9, 2026
#9790)

## What changed?
Minor fixes.

## Why?
These were missing or misplaced previously.

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)



<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes task routing and cancellation scheduling in the Nexus
operation state machine, which can affect execution flow and delivery to
outbound queues. While localized, incorrect destinations or transition
sequencing could cause stuck or misrouted operations.
> 
> **Overview**
> Ensures Nexus invocation tasks are routed to the correct outbound
queue by setting `TaskAttributes.Destination` to the operation endpoint
when scheduling and when rescheduling after backoff.
> 
> Moves the "cancellation already requested" handling from the workflow
`Started` event handler into `TransitionStarted`, so pending
cancellations are automatically scheduled as soon as an operation token
becomes available.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4eddec6. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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