Scheduler deleted
This commit is contained in:
parent
20b5955ba9
commit
7206de35a8
@ -81,7 +81,11 @@ func (s *ScheduleManager) listenForChange(nc *nats.Conn, chanName string, delete
|
|||||||
for msg := range ch {
|
for msg := range ch {
|
||||||
map_mess := map[string]string{}
|
map_mess := map[string]string{}
|
||||||
json.Unmarshal(msg.Data, &map_mess)
|
json.Unmarshal(msg.Data, &map_mess)
|
||||||
fmt.Println("Catching new workflow... " + map_mess["id"])
|
str := "new"
|
||||||
|
if delete {
|
||||||
|
str = "deleted"
|
||||||
|
}
|
||||||
|
fmt.Println("Catching " + str + " workflow... " + map_mess["id"])
|
||||||
if delete {
|
if delete {
|
||||||
Bookings.DeleteSchedules(map_mess["id"])
|
Bookings.DeleteSchedules(map_mess["id"])
|
||||||
} else {
|
} else {
|
||||||
|
BIN
oc-schedulerd
BIN
oc-schedulerd
Binary file not shown.
Loading…
Reference in New Issue
Block a user