Added footer information after job completion.
The footer will be added to the end of the file .out
file. This implies that the remote log should be successfully retrieved.
The footer has the format:
[INFO] HDATA={"name": "a29z_REMOTE_SETUP", "date": "", "section": "", "member": "REMOTE_SETUP", "chunk": 0, "submit": "2020-10-14-12:04:21", "start": "2020-10-14-12:04:31", "finish": "2020-10-14-12:05:22", "queue_time": "0:00:10", "run_time": "0:00:51", "wallclock": "00:05", "ncpus": 1, "nnodes": 0, "energy": 0}
Where the HDATA value is in JSON format.
Also, a safe threading closing operation has been added after CTRL-C
is pressed. It follows the implementation done by @dbeltran.
@mcastril Please review the format.
Platform has been added to the format:
[INFO] HDATA={"name": "a29z_20000102_fc4_1_POST", "date": "2000-01-02 00:00:00", "section": "fc4", "member": "POST", "chunk": 1, "submit": "2020-10-14-12:33:46", "start": "2020-10-14-12:34:03", "finish": "2020-10-14-12:34:57", "queue_time": "0:00:17", "run_time": "0:00:54", "wallclock": "00:05", "ncpus": 1, "nnodes": 0, "energy": 0, "platform": "LOCAL"}