https://dagster.io/ logo
#announcements
Title
# announcements
a

Auster Cid

05/12/2020, 8:27 PM
Is there any way to remotely launch a pipeline run on a dagster instance with a http request?
s

schrockn

05/12/2020, 8:28 PM
Without knowing more details I would just use our graphql interface
a

Auster Cid

05/12/2020, 9:18 PM
I had a feeling that would be the way. No experience with graphQL but I think I can manage this by studying
dagster_graphql/client/*execute.py*
s

schrockn

05/12/2020, 9:19 PM
a cli utility that points to a remote server and allows you do to basic commands is definitely a reasonable feature request
👍 1
a

Auster Cid

05/12/2020, 9:19 PM
my plan is to actually issue this request from a Google App Script, so a cli utility wouldnt work
My users will consume data from a google sheet, so I plan on putting a button there that launches the pipeline that updates the spreadsheet
🦜 1
t

Tobias Macey

05/13/2020, 1:21 PM
I've got a similar use case in mind for being able to trigger pipeline runs from an S3 event trigger, so I'll be looking at the API for my options there.
s

schrockn

05/13/2020, 1:47 PM
@Auster Cid so is that just a python API? I've never scripted gsheets
a

Auster Cid

05/13/2020, 1:57 PM
Google Script is kinda like javascript AFAIK. It is quite limited in what it can do so I think the best bet would be to trigger the launch with an HTTP request, if thats possible
s

schrockn

05/13/2020, 2:27 PM
yup
http request against dagit is going to be the way to go
w

wbonelli

05/13/2020, 3:48 PM
I've got a similar use case, here's what's working for me in case it helps anyone: https://gist.github.com/w-bonelli/ac73d9430236b1947a4a202ad1143392
a

Auster Cid

05/13/2020, 6:52 PM
tyvm @wbonelli!
👍 1
3 Views