Add run_id to Action Outputs#212
Conversation
|
@gibsondan Could it be possible to review this small PR? |
|
@bhattarai842 is this for when the command is dagster-cloud job launch? There's an existing This command runs arbitrary dagster cloud CLI commands so i would be hesitant about assuming a specific format to the output. |
Thanks @gibsondan. I will check your suggestion. |
|
I haven't done that yet, but it seems we could use |
|
@gibsondan I tested your suggestion but I cannot lauch job. It throws me error. File "/venv-dagster-cloud/lib/python3.10/site-packages/dagster_cloud_cli/utils.py", line 92, in wrap_function
return to_wrap(*args, **modified_kwargs)
File "/venv-dagster-cloud/lib/python3.10/site-packages/dagster_cloud_cli/commands/job/__init__.py", line [51](https://github.com/jouzen/dagster-etl/actions/runs/13852328638/job/38761713863?pr=93#step:19:52), in launch
gql.launch_run(
File "/venv-dagster-cloud/lib/python3.10/site-packages/dagster_cloud_cli/gql.py", line 639, in launch_run
formatted_tags = [{"key": cast(str, k), "value": cast(str, v)} for k, v in tags.items()]
AttributeError: 'str' object has no attribute 'items'
Failed to launch run |
|
Can you share the inputs that aren’t working? It looks like there is a
problem with your tags input.
…On Mon, Mar 31, 2025 at 12:42 AM Shishir Bhattarai ***@***.***> wrote:
@gibsondan <https://github.com/gibsondan> I tested your suggestion but I
cannot lauch job. It throws me error.
File "/venv-dagster-cloud/lib/python3.10/site-packages/dagster_cloud_cli/utils.py", line 92, in wrap_function
return to_wrap(*args, **modified_kwargs)
File "/venv-dagster-cloud/lib/python3.10/site-packages/dagster_cloud_cli/commands/job/__init__.py", line [51](https://github.com/jouzen/dagster-etl/actions/runs/13852328638/job/38761713863?pr=93#step:19:52), in launch
gql.launch_run(
File "/venv-dagster-cloud/lib/python3.10/site-packages/dagster_cloud_cli/gql.py", line 639, in launch_run
formatted_tags = [{"key": cast(str, k), "value": cast(str, v)} for k, v in tags.items()]AttributeError: 'str' object has no attribute 'items'Failed to launch run
—
Reply to this email directly, view it on GitHub
<#212 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAPJCZYNTY5KR6JK46ODKD2XDIUXAVCNFSM6AAAAABT64T7ASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRVGIYDCNJRGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: bhattarai842]*bhattarai842* left a comment
(dagster-io/dagster-cloud-action#212)
<#212 (comment)>
@gibsondan <https://github.com/gibsondan> I tested your suggestion but I
cannot lauch job. It throws me error.
File "/venv-dagster-cloud/lib/python3.10/site-packages/dagster_cloud_cli/utils.py", line 92, in wrap_function
return to_wrap(*args, **modified_kwargs)
File "/venv-dagster-cloud/lib/python3.10/site-packages/dagster_cloud_cli/commands/job/__init__.py", line [51](https://github.com/jouzen/dagster-etl/actions/runs/13852328638/job/38761713863?pr=93#step:19:52), in launch
gql.launch_run(
File "/venv-dagster-cloud/lib/python3.10/site-packages/dagster_cloud_cli/gql.py", line 639, in launch_run
formatted_tags = [{"key": cast(str, k), "value": cast(str, v)} for k, v in tags.items()]AttributeError: 'str' object has no attribute 'items'Failed to launch run
—
Reply to this email directly, view it on GitHub
<#212 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAPJCZYNTY5KR6JK46ODKD2XDIUXAVCNFSM6AAAAABT64T7ASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRVGIYDCNJRGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This change introduces a
run_idoutput in the action metadata, making it accessible to subsequent steps in the workflow. Therun_idvalue is derived from the output of thedagster-cloud-clistep, allowing workflows to reference it.