nextpyp.client.gen.JobArgs#
- class nextpyp.client.gen.JobArgs#
Bases:
Generic[T]Argument storage for jobs. Jobs can have two sets of arguments:
The
finishedarguments: the arguments that were used when running the job the last time.And/or the
nextarguments: the arguments that will be used to run the job the next time.
Methods
deserialize- rtype:
JobArgs[TypeVar(T)]
Creates a new class instance from JSON
serialize- rtype:
str
Converts this class instance into JSON
Attributes
TYPE_IDjob arguments that have been processed by a run ie, describes the current state of the job's output files
job arguments pending for the next run ie, describes how the job's output files could be in the one possible future
Details
- __init__(finished, next)#
- Parameters:
finished (T | None) –
next (T | None) –
- Return type:
None
-
finished:
Optional[TypeVar(T)]# job arguments that have been processed by a run ie, describes the current state of the job’s output files
- classmethod from_json(json, type_ids=None)#
Creates a new class instance from JSON
- Return type:
JobArgs[TypeVar(T)]- Parameters:
json (Dict[str, Any]) –
type_ids (Dict[str, str] | None) –
-
next:
Optional[TypeVar(T)]# job arguments pending for the next run ie, describes how the job’s output files could be in the one possible future
- to_json()#
Converts this class instance into JSON
- Return type:
Dict[str,Any]