Closed dylanbhughes closed 3 months ago
Thanks for the issue! I agree that the HightouchRunSync task could handle all terminal status codes so that it does not continue to wait after sync completion. I think someone could implement it similarly to how it's done in prefect-census and used the latest Hightouch API reference documentation to update the endpoints in the process.
Closing as stale and because Prefect 1.x is no longer under active development.
First check
Bug summary
The
HightouchRunSync
Task doesn't take finished sync run states other than "successful" into account.See https://github.com/PrefectHQ/prefect/blob/1.x/src/prefect/tasks/hightouch/hightouch_utils.py#L93
In the snippet above, the API may return "disabled", "cancelled", "failed", "success", "warning", "reporting", or "interrupted" end states. With the current logic, the Task hangs until it reaches its
max_wait_time
, at which point it fails.Furthermore, it looks like the
HightouchClient
might be using a non-public or deprecated version of the Hightouch API?Reproduction
Error
No response
Versions
Additional context
No response