Skip to content

Commit de85c54

Browse files
committed
DEV Make names python-specific
1 parent 91c56f3 commit de85c54

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

hello_nexus/caller/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
async def execute_workflow(workflow_cls: Type[Any], input: Any) -> None:
20-
client = await Client.connect("localhost:7233", namespace="my-caller-namespace")
20+
client = await Client.connect("localhost:7233", namespace="my-caller-namespace-python")
2121
task_queue = "my-caller-task-queue"
2222

2323
async with Worker(

hello_nexus/caller/workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CallerWorkflowBase:
1818
def __init__(self):
1919
self.nexus_client = NexusClient(
2020
MyNexusService, # or string name "my-nexus-service",
21-
"my-nexus-endpoint-name",
21+
"my-nexus-endpoint-name-python",
2222
schedule_to_close_timeout=timedelta(seconds=30),
2323
)
2424

hello_nexus/clean

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
temporal-delete-all my-target-namespace
2-
temporal-delete-all my-caller-namespace
1+
temporal-delete-all my-target-namespace-python
2+
temporal-delete-all my-caller-namespace-python
33

4-
temporal operator namespace create --namespace my-target-namespace
5-
temporal operator namespace create --namespace my-caller-namespace
4+
temporal operator namespace create --namespace my-target-namespace-python
5+
temporal operator namespace create --namespace my-caller-namespace-python
66

77
sleep 1
88

99
temporal operator nexus endpoint create \
10-
--name my-nexus-endpoint-name \
11-
--target-namespace my-target-namespace \
12-
--target-task-queue my-target-task-queue \
10+
--name my-nexus-endpoint-name-python \
11+
--target-namespace my-target-namespace-python \
12+
--target-task-queue my-target-task-queue-python \
1313
--description-file ./hello_nexus/service/description.md
1414

hello_nexus/handler/worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212

1313
async def main():
14-
client = await Client.connect("localhost:7233", namespace="my-target-namespace")
15-
task_queue = "my-target-task-queue"
14+
client = await Client.connect("localhost:7233", namespace="my-target-namespace-python")
15+
task_queue = "my-target-task-queue-python"
1616

1717
async with Worker(
1818
client,

0 commit comments

Comments
 (0)