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

Kevin

06/11/2020, 5:29 AM
Hi I am new to Dagster, I've run through the tutorials, which were great, but I'm wondering if it is possible to set Dagster up in such a manner that every pipeline executed via dagit/dagster is automatically added to a repository stored in a postgresdb??
m

max

06/11/2020, 6:34 AM
hmm, I’m not 100% sure I know what you mean, but you can certainly use Postgres as backing storage for runs and events
k

Kevin

06/11/2020, 3:40 PM
@cat @max Thank you for reaching out! 🙂 So I have read this section of the docs, and i have added an env variable for $DAGSTER_HOME, as well as the dagster.yaml file (attached) However, when I run dagit without specifying a file or pipeline, it does not show me previous pipelines that were run...
c

cat

06/11/2020, 3:45 PM
Click on the “Runs” tab on the left hand side, under the Dagster logo?
k

Kevin

06/11/2020, 3:46 PM
"No runs to display. Use the Playground to start a pipeline."
c

cat

06/11/2020, 3:48 PM
And your pipeline has successfully run before while using the Postgres db?
k

Kevin

06/11/2020, 3:51 PM
So I am experimenting with the postgresdb, currently whenever I try to "Start Execution" of any given pipeline, I am greeted with: "Your instance has been configured to disable local execution. Please check the run launcher configuration on your dagster instance for more options." and to that end I haven't really found anything in the documentation about how to get around that
c

cat

06/11/2020, 3:53 PM
Oh the RemoteDagitRunLauncher is in the process of being deprecated, try just removing the run_launcher section from the config
k

Kevin

06/11/2020, 3:55 PM
I have already commented that section out in the config, which kind of adds to my confusion
c

cat

06/11/2020, 3:56 PM
Is there a small toggle next to start execution that lets you change to “launch execution”?
Should look like a small triangle in the start execution button, on the right side?
Sorry, our docs are a little out of date — we’re doing our 0.8.0 release today and are doing a docs refresh with it
k

Kevin

06/11/2020, 3:58 PM
Nada :s
and that's understandable that the docs are being refreshed! I look forward to reading the new docs!
c

cat

06/11/2020, 4:13 PM
do you get an error if you hit “start execution” after removing run_launcher from your dagster.yaml?
k

Kevin

06/11/2020, 4:16 PM
Yes. I commented it out to begin with as reading the config it says "Provides an optional means to delegate the execution of pipeline runs", which I took as not default settings
c

cat

06/11/2020, 4:33 PM
whats the error you get when you try to start execution while a run launcher isnt configured?
k

Kevin

06/11/2020, 4:40 PM
So with my current config, which has the run launcher section commented out, whenever i attempt to "start execution" of a given pipeline I am greeted with the following error:
c

cat

06/11/2020, 4:59 PM
ah, removing the last section of the dagster.yaml will fix that issue
Copy code
dagit:
  execution_manager:
    disabled: true # whether dagit can run pipelines in a sub process
    max_concurrent_runs: 10 # how many at a time
^
disabled: true
prevents dagit from spawning a sub process to run the pipeline. the good news is that the remove dagit run launcher and related confusions are ripped out now, so its a lot easier to get set up in 0.8.0
k

Kevin

06/11/2020, 5:12 PM
Thank you Cat! that does solve my problem related to execution, but my question still remains with the repository. Sorry for being a difficult customer 😬
c

cat

06/11/2020, 5:12 PM
so after running your pipeline, the runs tab is still empty?
k

Kevin

06/11/2020, 5:14 PM
No the run tab is updated with respects to that pipeline being executed, my question is whether dagster can be set up to show a history of sorts of everything that has been run, as well as their associated pipelines
c

cat

06/11/2020, 7:48 PM
the run tab should contain a history of every run that was executed with the current run storage. so if the run storage is changed, previous runs will not be viewable unless the run storage is changed back. does that answer the question?
so given that the run storage remains constant, it will show all pipeline runs (for any pipeline), including a snapshot of the pipeline structure at the time of run (even if the structure has been updated / changed)
let me know if thats not clear
k

Kevin

06/11/2020, 11:48 PM
No that is very clear! Thank you Cat 🙂 I guess I was hoping that the pipeline snapshot included in the run history would also include more in depth info on the solids, in addition to the repository growing dynamically, with each new pipeline executed I look forward to the new documentation!
👍 1