Skip to content

Commit b79f54c

Browse files
committed
Remove hello/hello_standalone_activity.py in favor of top-level hello_standalone_activity/ sample
The standalone activity sample now lives in its own top-level directory (added by Phil in fc08204). Update the test to import from the new location and update both READMEs accordingly.
1 parent fc08204 commit b79f54c

File tree

4 files changed

+5
-83
lines changed

4 files changed

+5
-83
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ Some examples require extra dependencies. See each sample's directory for specif
5555
* [hello_search_attributes](hello/hello_search_attributes.py) - Start workflow with search attributes then change
5656
while running.
5757
* [hello_signal](hello/hello_signal.py) - Send signals to a workflow.
58-
* [hello standalone activity](hello/hello_standalone_activity.py) - Execute an activity from outside of a workflow.
5958
* [hello update](hello/hello_update.py) - Send a request to and a response from a client to a workflow execution.
6059
<!-- Keep this list in alphabetical order -->
6160
* [activity_worker](activity_worker) - Use Python activities from a workflow in another language.
@@ -71,6 +70,7 @@ Some examples require extra dependencies. See each sample's directory for specif
7170
* [encryption](encryption) - Apply end-to-end encryption for all input/output.
7271
* [env_config](env_config) - Load client configuration from TOML files with programmatic overrides.
7372
* [gevent_async](gevent_async) - Combine gevent and Temporal.
73+
* [hello_standalone_activity](hello_standalone_activity) - Use activities without using a workflow.
7474
* [langchain](langchain) - Orchestrate workflows for LangChain.
7575
* [message_passing/introduction](message_passing/introduction/) - Introduction to queries, signals, and updates.
7676
* [message_passing/safe_message_handlers](message_passing/safe_message_handlers/) - Safely handling updates and signals.

hello/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Replace `hello/hello_activity.py` in the command with any other example filename
4444
* [hello_search_attributes](hello_search_attributes.py) - Start workflow with search attributes then change while
4545
running.
4646
* [hello_signal](hello_signal.py) - Send signals to a workflow.
47-
* [hello standalone activity](hello_standalone_activity.py) - Execute an activity from outside of a workflow.
4847
* [hello_update](hello_update.py) - **Send a request to and a response from a client to a workflow execution.**
4948

5049
Note: To enable the workflow update, set the `frontend.enableUpdateWorkflowExecution` dynamic config value to true.

hello/hello_standalone_activity.py

Lines changed: 0 additions & 79 deletions
This file was deleted.

tests/hello/hello_standalone_activity_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
from temporalio.client import Client
77
from temporalio.worker import Worker
88

9-
from hello.hello_standalone_activity import ComposeGreetingInput, compose_greeting
9+
from hello_standalone_activity.my_activity import ComposeGreetingInput, compose_greeting
1010

1111

1212
async def test_execute_standalone_activity(client: Client):
13-
pytest.skip("Standalone Activity is not yet supported by the CLI dev server")
13+
pytest.skip(
14+
"Standalone Activity is not yet supported by `temporal server start-dev`"
15+
)
1416
task_queue_name = str(uuid.uuid4())
1517

1618
async with Worker(

0 commit comments

Comments
 (0)