Skip to content

Commit 1a260c3

Browse files
authored
Mark local activities as experimental (#252)
Fixes #246
1 parent fdf8b65 commit 1a260c3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ Some things to note about the above code:
470470
capabilities are needed.
471471
* Local activities work very similarly except the functions are `workflow.start_local_activity()` and
472472
`workflow.execute_local_activity()`
473+
* ⚠️Local activities are currently experimental
473474
* Activities can be methods of a class. Invokers should use `workflow.start_activity_method()`,
474475
`workflow.execute_activity_method()`, `workflow.start_local_activity_method()`, and
475476
`workflow.execute_local_activity_method()` instead.

temporalio/workflow.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,6 +2197,9 @@ def start_local_activity(
21972197
At least one of ``schedule_to_close_timeout`` or ``start_to_close_timeout``
21982198
must be present.
21992199
2200+
.. warning::
2201+
Local activities are currently experimental.
2202+
22002203
Args:
22012204
activity: Activity name or function reference.
22022205
arg: Single argument to the activity.
@@ -2365,6 +2368,9 @@ async def execute_local_activity(
23652368
"""Start a local activity and wait for completion.
23662369
23672370
This is a shortcut for ``await`` :py:meth:`start_local_activity`.
2371+
2372+
.. warning::
2373+
Local activities are currently experimental.
23682374
"""
23692375
# We call the runtime directly instead of top-level start_local_activity to
23702376
# ensure we don't miss new parameters
@@ -2497,6 +2503,9 @@ def start_local_activity_class(
24972503
"""Start a local activity from a callable class.
24982504
24992505
See :py:meth:`start_local_activity` for parameter and return details.
2506+
2507+
.. warning::
2508+
Local activities are currently experimental.
25002509
"""
25012510
return _Runtime.current().workflow_start_local_activity(
25022511
activity,
@@ -2627,6 +2636,9 @@ async def execute_local_activity_class(
26272636
"""Start a local activity from a callable class and wait for completion.
26282637
26292638
This is a shortcut for ``await`` :py:meth:`start_local_activity_class`.
2639+
2640+
.. warning::
2641+
Local activities are currently experimental.
26302642
"""
26312643
# We call the runtime directly instead of top-level start_local_activity to
26322644
# ensure we don't miss new parameters
@@ -2759,6 +2771,9 @@ def start_local_activity_method(
27592771
"""Start a local activity from a method.
27602772
27612773
See :py:meth:`start_local_activity` for parameter and return details.
2774+
2775+
.. warning::
2776+
Local activities are currently experimental.
27622777
"""
27632778
return _Runtime.current().workflow_start_local_activity(
27642779
activity,
@@ -2889,6 +2904,9 @@ async def execute_local_activity_method(
28892904
"""Start a local activity from a method and wait for completion.
28902905
28912906
This is a shortcut for ``await`` :py:meth:`start_local_activity_method`.
2907+
2908+
.. warning::
2909+
Local activities are currently experimental.
28922910
"""
28932911
# We call the runtime directly instead of top-level start_local_activity to
28942912
# ensure we don't miss new parameters

0 commit comments

Comments
 (0)