AG-Schumann / Doberman

Distributed supervisory control, data acquisition, and monitoring software for small- to medium-size experiments
MIT License
0 stars 1 forks source link

Zombie pipelines when pipeline monitor restarts #203

Closed adambrown1 closed 1 year ago

adambrown1 commented 1 year ago

the status is still active in the DB but the pipeline is not running, means we cannot restart it through the website

jarongrigat commented 1 year ago

So let's discuss how to solve this issue:

adambrown1 commented 1 year ago

What happens if for some reason a pipeline has status inactive in the database but is not actually running? Should we avoid using the database status to make any decisions in order to prevent people from messing things up by changing the database entry to something crazy? But in most cases this looks good. The change from status == active to status != inactive is important in order to avoid multiple instances of pipelines starting when they get silenced.

jarongrigat commented 1 year ago

What we could do is adding a field in the experiment_config for each pipeline monitor that works similar to the processes.managed field for the hypervisor and remove the status field from the individual pipelines.

adambrown1 commented 1 year ago

Sounds reasonable to me, as long as it doesn't overcomplicate filling the pipeline page of doberview