nextpyp.client.gen.JobArgs#

class nextpyp.client.gen.JobArgs#

Bases: Generic[T]

Argument storage for jobs. Jobs can have two sets of arguments:

  • The finished arguments: the arguments that were used when running the job the last time.

  • And/or the next arguments: the arguments that will be used to run the job the next time.

Methods

__init__

deserialize

rtype:

JobArgs[TypeVar(T)]

from_json

Creates a new class instance from JSON

serialize

rtype:

str

to_json

Converts this class instance into JSON

Attributes

TYPE_ID

finished

job arguments that have been processed by a run ie, describes the current state of the job's output files

next

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]