Activity pause
What was changed
Added ActivityPausedException that is thrown on getting paused flag from heartbeat.
Checklist
- Closes #588
- How was this tested: manually
- Wait RoadRunner 2025.2
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| php | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 8, 2025 2:34pm |
@Sushisource do we need to add tests with unpause?
I don't think you do, really. From SDK's perspective it's just a new activity attempt.
However, I do think we need to add some additional info to the context, since it's possible for multiple of these exceptional states to be happening, now. Ex, in Python: https://github.com/temporalio/sdk-python/blob/633b90c60580b73027053ca95becec0f37d09eeb/temporalio/activity.py#L147
Context of the whole commit here: https://github.com/temporalio/sdk-python/commit/27cc67f1c62b7c1ad058fa7ea2bee49ed061676e
Added Activity::getCancellationDetails() that returns ActivityCancellationDetails DTO