ummon-server / ummon-server

Ummon is node.js application for creating, queuing, running and monitoring externally running tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deleted trigger tasks lead to corrupt config files

gsf opened this issue · comments

Still looking into the exact cause of this, but when I delete tasks that are triggers for other tasks I end up with config files such as the following:

$ cat config/tasks/test3.tasks.json 
{
        "collection": "test3",
        "defaults": {
                "cwd": "/home/gsf"
        },
        "config": {
                "enabled": true
        },
        "tasks": {}
}"ann": {
                        "lastSuccessfulRun": 1386172620489,
                        "command": "echo hello",
                        "trigger": {
                                "after": "test.ann"
                        },
                        "enabled": true
                }
        }
}$

Cannot reproduce, moving to backlog.