You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build async clients and workers for long-running, retryable work. Start with a
19
-
local self-hosted Server—no Cloud account is required.
18
+
Define workflows and activities, run an async worker, and start durable work
19
+
from Python. Begin with self-hosted Server or connect an existing managed Cloud
20
+
namespace.
20
21
21
22
<divclass="dw-hero__actions">
22
-
<aclass="dw-button dw-button--primary"data-docs-destination="local-self-hosted"data-access="no-account-required"href="#first-workflow">Run your first workflow <spanaria-hidden="true">→</span></a>
23
-
<aclass="dw-button dw-button--secondary"data-docs-destination="sdk-guide"href="https://durable-workflow.com/docs/2.0/polyglot/python/">Read the SDK guide</a>
24
-
<aclass="dw-text-link"data-docs-destination="api-reference"href="reference/client/">Browse API reference</a>
23
+
<aclass="dw-button dw-button--primary"data-docs-destination="local-self-hosted"data-access="no-account-required"href="#first-workflow">Run with Server <spanaria-hidden="true">→</span></a>
24
+
<aclass="dw-button dw-button--secondary"data-docs-destination="managed-cloud"data-access="limited"href="#managed-cloud">Connect to Cloud</a>
The compatible-release constraint follows the supported 2.0 prerelease
40
-
channel without pinning this page to one release-candidate number.
40
+
The requirement is rendered from the SDK's current package and compatibility
41
+
authority instead of being copied into this page.
41
42
42
43
<pclass="dw-install-card__links"><adata-docs-destination="pypi"href="https://pypi.org/project/durable-workflow/">View on PyPI</a><adata-docs-destination="github"href="https://github.com/durable-workflow/sdk-python">Source on GitHub</a></p>
43
44
@@ -61,70 +62,112 @@ dispatches them to your workflow and activity code.
<span class="dw-tag">Available without an account</span>
160
-
<h3>Self-hosted Server</h3>
161
-
<p>Run the published Server image with your database, authentication policy, and operational controls.</p>
162
-
<a class="dw-button dw-button--primary" data-docs-destination="self-hosting-guide" href="https://durable-workflow.com/docs/2.0/polyglot/server/">Open the Server guide <span aria-hidden="true">→</span></a>
<p>Use a provisioned namespace URL and separate client and worker credentials while Durable Workflow operates the runtime.</p>
168
-
<a class="dw-cloud-promotion__action" data-promotion-action="early-access" href="https://cloud.durable-workflow.com/early-access#source=sdk-python-reference">Request early access →</a>
169
-
</article>
170
-
</div>
208
+
### Use each credential for one job
209
+
210
+
<ulclass="dw-credential-grid">
211
+
<lidata-credential-role="control-plane-api-key"><strong>Control-plane API key</strong><span>Creates and administers Cloud resources and runtime credentials. It is not passed to the Python SDK runtime client.</span></li>
212
+
<lidata-credential-role="runtime-client-token"><strong>Runtime client token</strong><span>Starts and controls workflows in one namespace. Pass it through <code>DURABLE_WORKFLOW_CLIENT_TOKEN</code>, which maps to <code>control_token=</code>.</span></li>
213
+
<lidata-credential-role="runtime-worker-token"><strong>Runtime worker token</strong><span>Registers, polls, heartbeats, and completes work in that namespace. Pass it through <code>DURABLE_WORKFLOW_WORKER_TOKEN</code>, which maps to <code>worker_token=</code>.</span></li>
214
+
</ul>
215
+
216
+
Replace the placeholders with values returned for your namespace, then run the
217
+
same `greeter.py`. Keep client and worker tokens in their respective processes
<aclass="dw-link-card"data-docs-destination="sdk-guide"href="https://durable-workflow.com/docs/2.0/polyglot/python/"><strong>Python SDK guide</strong><span>Tutorials, architecture, testing, and operations.</span><span>Read the guide →</span></a>
180
239
<aclass="dw-link-card"data-docs-destination="api-reference"href="reference/client/"><strong>Generated API reference</strong><span>Signatures, return types, exceptions, and public modules.</span><span>Browse reference →</span></a>
181
240
<aclass="dw-link-card"data-docs-destination="pypi"href="https://pypi.org/project/durable-workflow/"><strong>PyPI package</strong><span>Release files, Python requirements, and package metadata.</span><span>Open PyPI →</span></a>
182
-
<aclass="dw-link-card"data-docs-destination="github"href="https://github.com/durable-workflow/sdk-python"><strong>GitHub repository</strong><span>Source, examples, changelog, and contribution guide.</span><span>View source →</span></a>
241
+
<aclass="dw-link-card"data-docs-destination="github"href="https://github.com/durable-workflow/sdk-python"><strong>SDK source</strong><span>Examples, changelog, source, and contribution guide.</span><span>View source →</span></a>
242
+
<aclass="dw-link-card"data-docs-destination="main-docs"href="https://durable-workflow.com/docs/2.0/introduction/"><strong>Durable Workflow 2.0 docs</strong><span>Concepts, runtime choices, operations, and platform guides.</span><span>Open the docs →</span></a>
0 commit comments