https://dagster.io/ logo
c

Cam Marquis

07/01/2020, 2:06 PM
Hey All, We've been experimenting with Dagster over the past few weeks and really like it! We are very interested in deploying Dagit as a service and being able to trigger pipelines via REST calls rather than scheduling with chron. Any guidance on the best way to go about implementing something like this? As far as I know there is no rest interface for Dagit nor do any of the current extensions offer what we need... but knowing me it is very possible I just missed something. Thanks in advance for any guidance!
👍 1
graphql 1
m

max

07/01/2020, 2:18 PM
you will probably want to use Dagit's GraphQL api
if you just navigate to
/graphql
in dagit, there's an interactive playground you can use to explore the API
c

Cam Marquis

07/01/2020, 2:21 PM
Thanks! I'll check it out
d

Danny

07/01/2020, 4:11 PM
@Cam Marquis we're doing this as well, and currently the best working code samples I've found for doing this are in the test suite for dagster-graphql. Warning: due to test scaffolding, the code there is far from simple
c

Cam Marquis

07/01/2020, 4:47 PM
@Danny Yeah I've been looking there this morning. You are definitely right... far from simple. I'll be working this the next few days and be sure to share whatever I come up with!
d

Danny

07/01/2020, 4:51 PM
@max any positive feelings about adding an official graphql client in
dagster-graphql
?
Copy code
from dagster_graphql import DagsterGraphQLClient

client = DagsterGraphQLClient('<http://localhost:9000>')
client.launch_pipeline('my_pipeline', config={})
❤️ 4
m

max

07/01/2020, 5:12 PM
i think that'd be wonderful and would welcome a PR -- and also feel free to open an issue against this
sigh i guess we do also have this https://github.com/dagster-io/dagster/issues/1856
d

Danny

07/01/2020, 6:26 PM
c

Cam Marquis

07/01/2020, 6:42 PM
Awesome!
2 Views