Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Dec 12, 2024
1 parent 1c1e69c commit 4f8940e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,14 @@ Some examples require extra dependencies. See each sample's directory for specif
* [encryption](encryption) - Apply end-to-end encryption for all input/output.
* [gevent_async](gevent_async) - Combine gevent and Temporal.
* [langchain](langchain) - Orchestrate workflows for LangChain.
* [message-passing introduction](message_passing/introduction/) - Introduction to queries, signals, and updates.
* [message_passing/introduction](message_passing/introduction/) - Introduction to queries, signals, and updates.
* [message_passing/safe_message_handlers](message_passing/safe_message_handlers/) - Safely handling updates and signals.
* [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.
* [open_telemetry](open_telemetry) - Trace workflows with OpenTelemetry.
* [patching](patching) - Alter workflows safely with `patch` and `deprecate_patch`.
* [polling](polling) - Recommended implementation of an activity that needs to periodically poll an external resource waiting its successful completion.
* [prometheus](prometheus) - Configure Prometheus metrics on clients/workers.
* [pydantic_converter](pydantic_converter) - Data converter for using Pydantic models.
* [safe_message_handlers](message_passing/safe_message_handlers/) - Safely handling updates and signals.
* [schedules](schedules) - Demonstrates a Workflow Execution that occurs according to a schedule.
* [sentry](sentry) - Report errors to Sentry.
* [worker_specific_task_queues](worker_specific_task_queues) - Use unique task queues to ensure activities run on specific workers.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Update With Start: Shopping Cart
# Update With Start: Lazy init

This sample illustrates the use of update-with-start to send Updates to a Workflow, starting the Workflow if
it is not running yet. The Workflow represents a Shopping Cart in an e-commerce application, and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
WorkflowUpdateFailedError,
)

from message_passing.update_shopping_cart.workflows import (
from message_passing.update_with_start.lazy_init.workflows import (
ShoppingCartItem,
ShoppingCartWorkflow,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from temporalio.client import Client
from temporalio.worker import Worker

from message_passing.update_shopping_cart import TASK_QUEUE, workflows
from message_passing.update_with_start.lazy_init import TASK_QUEUE, workflows

interrupt_event = asyncio.Event()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from temporalio import workflow
from temporalio.exceptions import ApplicationError

from message_passing.update_shopping_cart.activities import ShoppingCartItem, get_price
from message_passing.update_with_start.lazy_init.activities import (
ShoppingCartItem,
get_price,
)


@dataclass
Expand Down

0 comments on commit 4f8940e

Please sign in to comment.