Skip to content

Commit 35949d7

Browse files
committed
Add clarifying comment about workflow type
1 parent 8cb3c27 commit 35949d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

worker_versioning/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ async def main() -> None:
2020
)
2121
await wait_for_worker_and_make_current(client, "1.0")
2222

23-
# Start auto-upgrading and pinned workflows
23+
# Start auto-upgrading and pinned workflows. Importantly, note that when we start the workflows,
24+
# we are using a workflow type name which does *not* include the version number. We defined them
25+
# with versioned names so we could show changes to the code, but here when the client invokes
26+
# them, we're demonstrating that the client remains version-agnostic.
2427
auto_upgrade_workflow_id = "worker-versioning-versioning-autoupgrade_" + str(
2528
uuid.uuid4()
2629
)

0 commit comments

Comments
 (0)