microsoft / durabletask-python

A Durable Task Python SDK compatible with Dapr Workflow and its underlying Durable Task engine
MIT License
13 stars 6 forks source link

Fix error handling in generator logic #21

Closed cgillum closed 8 months ago

cgillum commented 8 months ago

Fixes #20

The problem was that the orchestrator generator logic wasn't correctly handling the task failure case. This PR fixes the problem and simplifies the logic, making it easier to understand. It also adds a bit more coverage to an existing error handling test case.

This PR also fixes several flake8 warnings/errors from previous commits.