exa.core.sequence.data_access.save_sequence_result

exa.core.sequence.data_access.save_sequence_result#

save_sequence_result(sequence_execute_result, final)#

Save the result of a sequence to persistence.

This function can be called repeatedly on the same sequence. Subsequent calls will update the data in the database. Thus, for incremental saving, a sequence will call this function with updated results after each run.

This function does not save the results of child sequences recursively.

Before calling this function, metadata has to exist in persistence so that results can be linked. That is, for the sequence in question, save_sequence_metadata() has to be called before this function.

Parameters:
  • sequence_execute_result (SequenceExecuteResultData) – The results data model to be serialized and saved to persistence.

  • final (bool) – A boolean indicating whether the result is marked final. After being marked final, further saving of results for the same sequence are prevented.

Return type:

None