Hyperfoil / qDup

Lab automation and queuing scripting
Apache License 2.0
12 stars 12 forks source link

Add `PWD` field to `:31337/active` json output #207

Closed johnaohara closed 2 months ago

johnaohara commented 8 months ago

At present, the JSON output from the :31337/active endpoint provides the following information

[{
  "output": "nohup: ignoring input and appending output to 'nohup.out'\r\n",
  "uid": 2320,
  "input": "",
  "lastUpdate": 1704456950682,
  "name": "sh: nohup scripts/hudson/jenkins.sh",
  "host": "jenkins@example.com:22",
  "contextId": "benchmark:2289@jenkins@example:22",
  "startTime": 1704456950680,
  "runTime": 1077401,
  "idleTime": 1077399,
  "script": "2289:script-cmd: benchmark"
}]

It would be helpful if the pwd was also included in the output, to easily find which directory the script(s) are being run from