Skip to content

Commit c35215c

Browse files
authored
Merge branch 'main' into feat/serverless-worker-prerelease
2 parents 448d49b + 709bc4a commit c35215c

6 files changed

Lines changed: 576 additions & 1 deletion

File tree

docs/develop/plugins-guide.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,9 @@ worker = Temporalio::Worker.new(
976976
</SdkTabs.Ruby>
977977
</SdkTabs>
978978

979-
Check for duplicate side effects or other types of failures.
979+
Inside this replay regime, you should test for duplicate side effects or other types of failures. When testing for duplicate side effects, it may not be sufficient to simply have a counter that increments once per effect, as activities may be retried. Instead, consider these patterns:
980+
981+
- count `ActivityTaskScheduled` events of the expected activity type in workflow history (one per intended call, independent of retries),
982+
- or accumulate activity IDs in a concurrency-safe set and assert on its size (different scheduled activities get different IDs; retries of the same scheduled activity share one).
980983

981984
It's harder to test against side effects to global variables, so this practice is best avoided entirely.

docs/develop/python/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ From there, you can dive deeper into any of the Temporal primitives to start bui
4040
- [Message passing](/develop/python/workflows/message-passing)
4141
- [Schedules](/develop/python/workflows/schedules)
4242
- [Timers](/develop/python/workflows/timers)
43+
- [Versioning](/develop/python/workflows/versioning)
44+
- [Workflow Streams](/develop/python/workflows/workflow-streams)
4345

4446
## [Activities](/develop/python/activities)
4547

docs/develop/python/workflows/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ import * as Components from '@site/src/components';
2626
- [Schedules](/develop/python/workflows/schedules)
2727
- [Timers](/develop/python/workflows/timers)
2828
- [Versioning](/develop/python/workflows/versioning)
29+
- [Workflow Streams](/develop/python/workflows/workflow-streams)

0 commit comments

Comments
 (0)