Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Workflow Run input appear always to be None in SDK #325

Open
wodow opened this issue Feb 27, 2025 · 2 comments
Open

Workflow Run input appear always to be None in SDK #325

wodow opened this issue Feb 27, 2025 · 2 comments

Comments

@wodow
Copy link

wodow commented Feb 27, 2025

I am using hatchet-sdk==0.47.0 for Python.

As an example, I am looking at /workflow-runs/0e7ee639-a334-4296-b1f9-da98932123a1 in the web UI and can clearly see an input (dict) on the page.

However, for this and all other workflow runs that I have tried:

> my_module.hatchet.rest.workflow_run_get("0e7ee639-a334-4296-b1f9-da98932123a1").input is None
True

I have tried poking around the rest of the SDK but see Nones in other possible locations too.

@mrkaye97
Copy link
Contributor

hey @wodow - I think this is a bug in the API. This block of code needs to be returning Input as part of that WorkflowRun struct, but it's not.

Thanks for flagging this! It might be an issue in other places too. We'll look into getting this patched

@mrkaye97
Copy link
Contributor

hey @wodow - one other thing: we have a workflow_run_get_input method too that'll let you work around this :) lmk if that doesn't work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants