-
I'm using the batch_get_command class to schedule downloading of files from multiple machines over RTR. If a machine is online and the file does not exist it will return "Check your filename" as stderr. But if a machine is offline, and later comes back online, when using the batch_get_command_status class using batch_get_cmd_req_id from the initial request, the resulting stderr will stay empty. The only time the output of the batch_get_command_status request changes is if the file exists and has been downloaded and I get the sha256 field populated. To reproduce this behaviour:
I would have thought that stderr would behave similarly as with batch_get_command, namely, return "Check your filename" if the file does not exist.
As far as I understand from the documentation this is the intended way to go about this, but is there another way this is intended to work? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @jsdjjsd - The process you describe above appears correct. We're recreating this issue on our side to confirm, and will reply back here once we have more information. Thank you for reporting this!!! 😃 |
Beta Was this translation helpful? Give feedback.
-
Hi @jsdjjsd - We believe we've identified the issue. If you instead try to use |
Beta Was this translation helpful? Give feedback.
-
Hi @jshcodes Thanks for looking into this. I've tested your suggestion now and at first I couldn't get Thanks! |
Beta Was this translation helpful? Give feedback.
-
That's my bad for giving you the wrong ID type. Updating the answer above for others. 😄 |
Beta Was this translation helpful? Give feedback.
Hi @jshcodes
Thanks for looking into this. I've tested your suggestion now and at first I couldn't get
RTR_CheckCommandStatus
to return anything useful using the session_id I get per resource from initiating theBatchGetCmd
, but it seems that if I use task_id instead I get something useful back, namely that while the endpoint is offline I getcomplete: False
and when it comes back online it returns the stderr I'm looking for. So if I just track the task_id from respective resource I should be fine.Thanks!