google / turbinia

Automation and Scaling of Digital Forensics Tools
Apache License 2.0
749 stars 162 forks source link

[FR]: Implement request poll/wait in turbinia-client #1376

Open aarontp opened 1 year ago

aarontp commented 1 year ago

What would this feature improve or what problem would it solve?

This would allow someone to see when a request is done without having to continuously check.

What is the feature you are proposing?

Implement a --wait flag or similar to turbinia-client status request so that the client will continuously poll until the request is completed and then report the full output. A --poll_interval flag would also be nice to be able to adjust how often the client polls the state. These are similar to turbiniactl flags.

What alternatives have you considered?

No response

hacktobeer commented 1 year ago

Isn't this easily solved by using watch?

aarontp commented 1 year ago

@hacktobeer Not really, this command will still generate a report output based on the current state of when it was called no matter if it's done or not. I guess I didn't mention it above, but it would also be nice to have some indication of the progress (similar to what dftimewolf does and what turbiniactl did) too.

jleaniz commented 1 year ago

Technically you could right now if you pass the -j flag it'll just be json output instead of a report and you can check for the status by checking the status key with jq or something. It won't give you a completion update though but you have the task counts. Would still be nice to have that though.