Skip to content

Commit

Permalink
resolving for ticket and removing redundant code snippet (#3246)
Browse files Browse the repository at this point in the history
Co-authored-by: Erica Sadun <[email protected]>
Co-authored-by: Brian MacDonald <[email protected]>
  • Loading branch information
3 people authored Jan 10, 2025
1 parent 70ca3fa commit 11954e8
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions docs/develop/python/versioning.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,25 +113,6 @@ Implementing patching involves three steps:
2. Remove the old code and apply [deprecate_patch](https://python.temporal.io/temporalio.workflow.html#deprecate_patch).
3. Once you're confident that all old Workflows have finished executing, remove `deprecate_patch`.

<div className="copycode-notice-container">
<a href="https://github.com/temporalio/documentation/blob/main/sample-apps/python/version_your_workflows/workflow_4_patch_complete_dacx.py">
View the source code
</a>{' '}
in the context of the rest of the application code.
</div>

```python
# ...
@workflow.defn
class MyWorkflow:
@workflow.run
async def run(self) -> None:
self._result = await workflow.execute_activity(
post_patch_activity,
schedule_to_close_timeout=timedelta(minutes=5),
)
```

### Patching in new code {#using-patched-for-workflow-history-markers}

Using `patched` inserts a marker into the Workflow History.
Expand Down

0 comments on commit 11954e8

Please sign in to comment.