alchemiscale icon indicating copy to clipboard operation
alchemiscale copied to clipboard

Retain stdout, stderr logs from `ProtocolDAGResult`s; expose access via `AlchemiscaleClient`

Open dotsdl opened this issue 1 year ago • 1 comments

Some Protocols execute tools that emit log information to either STDOUT, STDERR, or both. The information in these streams can be critical for users to understand where their Tasks are going wrong in case of persistent failure.

We should capture these streams when compute services execute ProtocolDAGs, then preserve them as additional artifacts when submitting completed or failed ProtocolDAGResults back to the server. These log artifacts can be stored in the object store, with references in the state store.

We can then expose these artifacts via additional AlchemiscaleClient methods, such as:

  • get_task_stdout(task_sk) : return all stdout outputs from all ProtocolDAGResults associated with the given Task
  • get_task_stderr(task_sk) : return all stderr outputs from all ProtocolDAGResults associated with the given Task

dotsdl avatar Aug 27 '24 01:08 dotsdl

CC: @JenkeScheen

dotsdl avatar Aug 28 '24 15:08 dotsdl