exa.core.sequence.data_access.save_sequence_metadata#
- save_sequence_metadata(data)#
Save metadata of a sequence to persistence.
This function is to be called once in the beginning of sequence execution. It creates an entity for the sequence in persistence that will be linked to the result data when calling
save_sequence_result()for the same sequence.Along with the UUID of the sequence, the following metadata is needed along with the results in order to create a usable entity in persistence:
origin_id: SeeEXA_SEQUENCE_ORIGIN_IDin sequences user documentation.origin_uri: SeeEXA_SEQUENCE_ORIGIN_URIin sequences user documentation.
Sensible default values are set for the additional metadata. Thus, a regular notebook user does not have to tweak anything.
- Parameters:
data (SequenceContextData) – context of the sequence.
- Return type:
None