Skip to content

Commit

Permalink
Remove experimental warnings from stable APIs (#766)
Browse files Browse the repository at this point in the history
* Remove experimental warnings from stable APIs

* poe format

* Revert "poe format"

This reverts commit d6e2aa2.

* use the right version of ruff to format
  • Loading branch information
yuandrew authored Feb 13, 2025
1 parent acde42c commit 77a1502
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 34 deletions.
1 change: 0 additions & 1 deletion temporalio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,6 @@ async def start_workflow(
request_eager_start: Potentially reduce the latency to start this workflow by
encouraging the server to start it on a local worker running with
this same client.
This is currently experimental.
Returns:
A workflow handle to the started workflow.
Expand Down
11 changes: 1 addition & 10 deletions temporalio/runtime.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Runtime for clients and workers. (experimental)
This module is currently experimental. The API may change.
"""
"""Runtime for clients and workers."""

from __future__ import annotations

Expand Down Expand Up @@ -128,9 +125,6 @@ class LoggingConfig:
forwarding: Optional[LogForwardingConfig] = None
"""If present, Core logger messages will be forwarded to a Python logger.
See the :py:class:`LogForwardingConfig` docs for more info.
.. warning::
This API is experimental
"""

default: ClassVar[LoggingConfig]
Expand Down Expand Up @@ -173,9 +167,6 @@ class LogForwardingConfig:
attribute which has arbitrary extra data from Core. By default a string
representation of this extra ``fields`` attribute is appended to the
message.
.. warning::
This API is experimental
"""

logger: logging.Logger
Expand Down
3 changes: 1 addition & 2 deletions temporalio/worker/_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ def __init__(
disable_eager_activity_execution: If true, will disable eager
activity execution. Eager activity execution is an optimization
on some servers that sends activities back to the same worker as
the calling workflow if they can run there. This setting is
experimental and may be removed in a future release.
the calling workflow if they can run there.
on_fatal_error: An async function that can handle a failure before
the worker shutdown commences. This cannot stop the shutdown and
any exception raised is logged and ignored.
Expand Down
21 changes: 0 additions & 21 deletions temporalio/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,9 +1100,6 @@ def update(
argument that can accept more fields later if needed. The handler may return
a serializable value which will be sent back to the caller of the update.
.. warning::
This API is experimental
Args:
fn: The function to decorate.
name: Update name. Defaults to method ``__name__``. Cannot be present
Expand Down Expand Up @@ -2981,9 +2978,6 @@ def start_local_activity(
At least one of ``schedule_to_close_timeout`` or ``start_to_close_timeout``
must be present.
.. warning::
Local activities are currently experimental.
Args:
activity: Activity name or function reference.
arg: Single argument to the activity.
Expand Down Expand Up @@ -3152,9 +3146,6 @@ async def execute_local_activity(
"""Start a local activity and wait for completion.
This is a shortcut for ``await`` :py:meth:`start_local_activity`.
.. warning::
Local activities are currently experimental.
"""
# We call the runtime directly instead of top-level start_local_activity to
# ensure we don't miss new parameters
Expand Down Expand Up @@ -3282,9 +3273,6 @@ def start_local_activity_class(
"""Start a local activity from a callable class.
See :py:meth:`start_local_activity` for parameter and return details.
.. warning::
Local activities are currently experimental.
"""
return _Runtime.current().workflow_start_local_activity(
activity,
Expand Down Expand Up @@ -3410,9 +3398,6 @@ async def execute_local_activity_class(
"""Start a local activity from a callable class and wait for completion.
This is a shortcut for ``await`` :py:meth:`start_local_activity_class`.
.. warning::
Local activities are currently experimental.
"""
# We call the runtime directly instead of top-level start_local_activity to
# ensure we don't miss new parameters
Expand Down Expand Up @@ -3540,9 +3525,6 @@ def start_local_activity_method(
"""Start a local activity from a method.
See :py:meth:`start_local_activity` for parameter and return details.
.. warning::
Local activities are currently experimental.
"""
return _Runtime.current().workflow_start_local_activity(
activity,
Expand Down Expand Up @@ -3668,9 +3650,6 @@ async def execute_local_activity_method(
"""Start a local activity from a method and wait for completion.
This is a shortcut for ``await`` :py:meth:`start_local_activity_method`.
.. warning::
Local activities are currently experimental.
"""
# We call the runtime directly instead of top-level start_local_activity to
# ensure we don't miss new parameters
Expand Down

0 comments on commit 77a1502

Please sign in to comment.