Skip to main content

Module convert

Module convert 

Source
Expand description

Conversions between protocol enums and schedr-model, and the master’s reaction to each rejection reason.

Structs§

ParseUpload
Collects an upload’s messages back into one parse result, as they arrive.

Enums§

ConversionError
A protocol value that has no schedr-model equivalent.
RejectReaction
How the master reacts to a rejection (see archive/PROJECT.md, Task rejections). A rejection never uses up a retry.

Functions§

attempt_status_from_proto
The model status for a raw protocol value (as found in Finished.status).
attempt_status_to_proto
The protocol’s attempt status for a model status.
cleanup_result_from_proto
The model result for a raw protocol value (as found in CleanupResult.status).
parse_upload_parts
A parse result as an upload’s messages: the header (without files), then each file in a message of its own (B35).
parsed_file_from_proto
A parsed file from its protocol form (without its warnings, which the protocol doesn’t carry).
parsed_file_to_proto
The protocol’s form of a parsed file: each DAG as DAG JSON bytes, each connection as its JSON.
reject_reaction
The master’s reaction to a raw Rejected.reason.
run_kind_from_proto
The run kind for a RunInfo.kind name.
run_kind_to_proto
The name a run kind travels as in RunInfo.kind.