https://dagster.io/ logo
Title
f

Francois-DE

10/14/2021, 8:43 AM
Hey. Is it possible to restart a daemon through the Dagster UI? Or would I need to restart my Container?
s

sourabh upadhye

10/14/2021, 1:51 PM
You have to run dagster-daemon along with dagit
d

daniel

10/14/2021, 2:39 PM
Hi Francois - dagit doesn't have the ability to restart your daemon for you, but if you're running in something like docker-compose or docker swarm you should be able to configure it to restart automatically there
e.g. in docker-compose there's a
restart:always
flag you can apply to containers
f

Francois-DE

10/14/2021, 2:44 PM
Thanks. I'll look into that. I'm launching dagit and dagster-daemon in my container.
d

daniel

10/14/2021, 2:47 PM
got it, that's going to be trickier then. the flag i mentioned assumes that there's one main process for each container (so that it knows how to define a failure in order to restart the container)
splitting into two containers, one for dagit and one for the daemon, would allow you to have something like docker-compose restart them indepenently
2
m

max

10/14/2021, 4:42 PM
if you're running on a single vm (or in a single container, though that's less desirable) you can use OS-level facilities to ensure that the process restarts if it dies