Skip to content

Commit 4f8940e

Browse files
committed
Rename
1 parent 1c1e69c commit 4f8940e

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ Some examples require extra dependencies. See each sample's directory for specif
6262
* [encryption](encryption) - Apply end-to-end encryption for all input/output.
6363
* [gevent_async](gevent_async) - Combine gevent and Temporal.
6464
* [langchain](langchain) - Orchestrate workflows for LangChain.
65-
* [message-passing introduction](message_passing/introduction/) - Introduction to queries, signals, and updates.
65+
* [message_passing/introduction](message_passing/introduction/) - Introduction to queries, signals, and updates.
66+
* [message_passing/safe_message_handlers](message_passing/safe_message_handlers/) - Safely handling updates and signals.
67+
* [message_passing/update_with_start/lazy_init](message_passing/update_with_start/lazy_init/) - Use update-with-start to update a Shopping Cart, starting if it it does not exist.
6668
* [open_telemetry](open_telemetry) - Trace workflows with OpenTelemetry.
6769
* [patching](patching) - Alter workflows safely with `patch` and `deprecate_patch`.
6870
* [polling](polling) - Recommended implementation of an activity that needs to periodically poll an external resource waiting its successful completion.
6971
* [prometheus](prometheus) - Configure Prometheus metrics on clients/workers.
7072
* [pydantic_converter](pydantic_converter) - Data converter for using Pydantic models.
71-
* [safe_message_handlers](message_passing/safe_message_handlers/) - Safely handling updates and signals.
7273
* [schedules](schedules) - Demonstrates a Workflow Execution that occurs according to a schedule.
7374
* [sentry](sentry) - Report errors to Sentry.
7475
* [worker_specific_task_queues](worker_specific_task_queues) - Use unique task queues to ensure activities run on specific workers.

message_passing/update_shopping_cart/README.md renamed to message_passing/update_with_start/lazy_init/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Update With Start: Shopping Cart
1+
# Update With Start: Lazy init
22

33
This sample illustrates the use of update-with-start to send Updates to a Workflow, starting the Workflow if
44
it is not running yet. The Workflow represents a Shopping Cart in an e-commerce application, and

message_passing/update_shopping_cart/starter.py renamed to message_passing/update_with_start/lazy_init/starter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
WorkflowUpdateFailedError,
1111
)
1212

13-
from message_passing.update_shopping_cart.workflows import (
13+
from message_passing.update_with_start.lazy_init.workflows import (
1414
ShoppingCartItem,
1515
ShoppingCartWorkflow,
1616
)

message_passing/update_shopping_cart/worker.py renamed to message_passing/update_with_start/lazy_init/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from temporalio.client import Client
55
from temporalio.worker import Worker
66

7-
from message_passing.update_shopping_cart import TASK_QUEUE, workflows
7+
from message_passing.update_with_start.lazy_init import TASK_QUEUE, workflows
88

99
interrupt_event = asyncio.Event()
1010

message_passing/update_shopping_cart/workflows.py renamed to message_passing/update_with_start/lazy_init/workflows.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
from temporalio import workflow
66
from temporalio.exceptions import ApplicationError
77

8-
from message_passing.update_shopping_cart.activities import ShoppingCartItem, get_price
8+
from message_passing.update_with_start.lazy_init.activities import (
9+
ShoppingCartItem,
10+
get_price,
11+
)
912

1013

1114
@dataclass

0 commit comments

Comments
 (0)