vpg / disturb

Distributed Workflow Processor
MIT License
11 stars 3 forks source link

Historize worker runs #113

Open jrmbrgs opened 6 years ago

jrmbrgs commented 6 years ago

Current :

{
        "runingOn": "dev129-port",
        "pid": 7220,
        "status": "exited",
        "startedAt": "2018-01-25 10:32:15",
        "heartBeatAt": "2018-01-25 10:32:25",
        "exitedAt": "2018-01-25 10:32:28",
        "exitCode": 0
}

target :

{
        "runingOn": "dev129-port",
        "pid": 7220,
        "status": "started",
        "startedAt": "2018-01-25 10:32:15",
        "heartBeatAt": "2018-01-25 10:32:25",
        "history" : [
                {
                        "startedAt": "2018-01-24 10:32:15",
                        "exitedAt": "2018-01-24 10:32:28",
                        "exitCode": 1
                },
                {
                        "startedAt": "2018-01-23 10:32:15",
                        "exitedAt": "2018-01-23 10:32:28",
                        "exitCode": 125
                },
                {
                        "startedAt": "2018-01-22 10:32:15",
                        "exitedAt": "2018-01-22 10:32:28",
                        "exitCode": 255
                },
        ]
}