Closed adambrown1 closed 1 year ago
So let's discuss how to solve this issue:
if (doc['status']!='inactive') && (name in self.pipelines.keys()):
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.
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.
Sounds reasonable to me, as long as it doesn't overcomplicate filling the pipeline page of doberview
the status is still active in the DB but the pipeline is not running, means we cannot restart it through the website