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 5ee2dbb
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Some examples require extra dependencies. See each sample's directory for specif
* [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.
* [update_with_start/lazy_init](update_with_start/lazy_init) - Use update-with-start to update a Shopping Cart, starting if it it does not exist.
* [worker_specific_task_queues](worker_specific_task_queues) - Use unique task queues to ensure activities run on specific workers.
* [worker_versioning](worker_versioning) - Use the Worker Versioning feature to more easily version your workflows & other code.

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 5ee2dbb

Please sign in to comment.