alchemiscale
alchemiscale copied to clipboard
Retain stdout, stderr logs from `ProtocolDAGResult`s; expose access via `AlchemiscaleClient`
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 allProtocolDAGResults associated with the givenTask -
get_task_stderr(task_sk): return all stderr outputs from allProtocolDAGResults associated with the givenTask
CC: @JenkeScheen