docker-gen icon indicating copy to clipboard operation
docker-gen copied to clipboard

Add support for notifying a service

Open njdancer opened this issue 8 years ago • 1 comments

njdancer avatar Jul 10 '17 13:07 njdancer

It works great, thanks. I don't understand why this hasn't been merged already.

I would just add this at the beginning of task for iteration body:

			if task.Status.State != "running" {
				continue
			}

And maybe also say which container the signal could not be sent to:

			if err := g.Client.KillContainer(killOpts); err != nil {
-				log.Printf("Error sending signal to container: %s", err)
+				log.Printf("Error sending signal to container %s: %s", container, err)
			}

k3a avatar Sep 22 '19 12:09 k3a