Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Get status of the workflows while running through python-Alteryx Gallery API

SriVindhya
5 - Atom

I have a python script which runs the alteryx workflows through API. I need an another python script which gets the status of the workflow such as Queued, Running, Success as we get status when we see in ALteryx gallery. Can anyone please help me on this.

 

Thanks in Advance

5 REPLIES 5
JagdeeshN
12 - Quasar
12 - Quasar

Hi @SriVindhya ,

 

Have you checked the GET /v1/jobs/{jobId}/  API call? Once the first python script has queued a workflow/job it will return a jobId. This can then be used as an argument the GET call, thus returning the current state.

 

https://gallery.alteryx.com/api-docs/#!/workflows.json/GetJobGET

 

 

Please do let me know if this helps.

 

Best,

Jagdeesh Narayanan

SriVindhya
5 - Atom

Thanks @jagdeeshn, It worked

JagdeeshN
12 - Quasar
12 - Quasar

@SriVindhya 

 

Awesome. Glad this worked.

Munivar
5 - Atom

Hi Jagdeesh,

 

I've a similar request where I'm trying to get the workflow run status based on jobID.

When I passed the JobID through GET/V1/jobs/{jobId}/  but couldn't get the results. Any possible cause of error you can think of here?

Thanks in advance!!

Munivar_0-1663752299359.png

 

GoldenDesign04
8 - Asteroid

@SriVindhya Would you be willing to share the Python script to put a job in the queue? We're looking to do something similar.