Merry Christmas steinar, it is ok if you don't answer very quick to this;-)
While implementing the Pause/Resume, i noticed that in the in the current version and in the beta, that there seems to be an issue regrading the split id. You can check it out using the most current Version of the Webui but i also invested lots of time e.g. using postman. Here some example PUT call:
Code: Select all
[[23:46:47.680]] [LOG] http://localhost:65445/api/json/v1/jobs/20181223-234623-369-AD8B9C3895ED
[[23:46:47.682]] [LOG] { action: 'resume', split: 0 }
The problem is, when we have a split, e.g. a workflow starting with "populate variables" and then splitting up into 2 sleep (60) modules. When there are 2 splits and setting the "split" element of the PUT body to 0 or 1, it seems like one of the both just does not work, but randomly it is 0 or 1 that don't work. Also it is not clear to me how to identify from the API get Jobs call which split number belongs to which split entry in the job. Currently i use the array index of the splits because there is no splitid in the "steps":
Code: Select all
{"discovery":"http://desktop-uifqt86:65445/api/json/v1","jobs":[{"job_id":"20181223-235154-318-CCBB2F21B995","job_start":"2018\/12\/23 23:51:55","file":"D:\\ExtendLastFrame.xml","wf_name":"XDCAMHD","splits":[{"steps":"2 \/ 2","processor":"Hold","status":"Resting workflow...","node":"DESKTOP-UIFQT86","progress":"50"},{"steps":"2 \/ 2","processor":"Hold","status":"Resting workflow...","node":"DESKTOP-UIFQT86","progress":"50"}]}]}
Also, please note that i had a huge problem working with the PUT. Unfortunately i needed to work on it about 6 hours or more, it was expected as a 30 minutes thing
Don't ask, some node.js middleware was inserting a BOM byte which is not allowed for JSON and i was not able to find out why or prevent it. My workaround was stopping the client from doing API calls but do API calls only on the server and implement special support on the server for it. If you have a chance, please only use GET and POST in future, the server and client libraries api consumers use may behave unexpected and strange for other methods.
Please enjoy christmas days (without working)
cheers!
emcodem