-
Notifications
You must be signed in to change notification settings - Fork 297
Plugins started on unsuccessful task start are not stopped #1210
Comments
Would a plugin existence check on start solve this? |
Code currently tries to subscribe to dependencies and then tries to unsubscribe from dependencies if any error is found during subscription. This doesn't look to be stopping the started plugins though. https://github.com/intelsdi-x/snap/blob/master/scheduler/scheduler.go#L486-L510 |
I believe the problems lies here https://github.com/intelsdi-x/snap/blob/master/scheduler/scheduler.go#L500. We are ranging over |
To expand on the last comment, there is only one dependency group created for the task. |
Nice catch |
Fix #1210: Do not start plugins unless all plugins are available for workflow
…lable for workflow
After creating a task, if the task is stopped and a plugin is removed that the task needs, attempting to start the task will result in starting the plugins required for the task, but not stopping those plugins when the task fails to start due to a missing required plugin. There is no way to stop these plugins without stopping snapd.
The text was updated successfully, but these errors were encountered: