Skip to content

Tags: temporalio/temporal

Tags

v1.24.3

Toggle v1.24.3's commit message
Bump Server version to 1.24.3

v1.26.2-122.0

Toggle v1.26.2-122.0's commit message

Verified

This commit was created on GitHub and signed with GitHub’sverified signature.
Recycle task tokens for invalid matching tasks (#6599)

## What changed?
Add a `RecycleToken` function to our custom rate limiters. It seems that
most of the rate limiters just wrap the `ClockedRateLimiter`, so let the
`ClockedRateLimiter`'s `WaitN` function unblock the waiter if recycle is
called, thus allowing us to recycle tokens and give them to any waiters
if they exist.

## Why?
Lots of invalid tasks combined with Activity task dispatch rate limiting
can cause the actual rate to be noticeably below the maximum rate. This
will make the actual rate match the max rps, as long as
`time_to_recycle` is reasonably short and `recycle_rate` is reasonable
(see discussion in the comments)

## How did you test it?
ClockedRateLimiter unit test.

## Potential risks
The max Activity RPS could break.

## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->

---------

Co-authored-by: David Reiss <[email protected]>

v1.25.1

Toggle v1.25.1's commit message
Bump Server version to 1.25.1

v1.26.2-121.3

Toggle v1.26.2-121.3's commit message
Bump Server version to 1.26.2-121.3

v1.26.2-121.2

Toggle v1.26.2-121.2's commit message
Bump Server version to 1.26.2-121.2

v1.26.2-121.1

Toggle v1.26.2-121.1's commit message
Bump Server version to 1.26.2-121.1

v1.26.0-120.7

Toggle v1.26.0-120.7's commit message
Bump Server version to 1.26.0-120.7

v1.26.1

Toggle v1.26.1's commit message
fix go.mod formatting

v1.26.2-121.0

Toggle v1.26.2-121.0's commit message

Verified

This commit was created on GitHub and signed with GitHub’sverified signature.
Fix SyncMap.PopAll if SyncMap is copied (#6557)

## What changed?
Change SyncMap.PopAll to clone+clear the contained map instead of
creating a new one.

## Why?
Swapping the map makes SyncMap not copyable, and it's intended to be
copyable (like a regular map reference).

## How did you test it?
existing test

v1.26.0

Toggle v1.26.0's commit message

Verified

This commit was created on GitHub and signed with GitHub’sverified signature.
Fix SyncMap.PopAll if SyncMap is copied (#6557)

## What changed?
Change SyncMap.PopAll to clone+clear the contained map instead of
creating a new one.

## Why?
Swapping the map makes SyncMap not copyable, and it's intended to be
copyable (like a regular map reference).

## How did you test it?
existing test