TaskDefinition#
- class ansys.hps.client.jms.TaskDefinition(id=<marshmallow.missing>, creation_time=<marshmallow.missing>, modification_time=<marshmallow.missing>, created_by=<marshmallow.missing>, modified_by=<marshmallow.missing>, name=<marshmallow.missing>, execution_command=<marshmallow.missing>, use_execution_script=<marshmallow.missing>, execution_script_id=<marshmallow.missing>, execution_level=<marshmallow.missing>, execution_context=<marshmallow.missing>, environment=<marshmallow.missing>, max_execution_time=<marshmallow.missing>, num_trials=<marshmallow.missing>, store_output=<marshmallow.missing>, input_file_ids=<marshmallow.missing>, output_file_ids=<marshmallow.missing>, success_criteria=<marshmallow.missing>, licensing=<marshmallow.missing>, software_requirements=<marshmallow.missing>, resource_requirements=<marshmallow.missing>, worker_context=<marshmallow.missing>, **kwargs)#
Provides the task definition resource.
- Parameters:
- id
str
,optional
Unique ID to access the resource, generated internally by the server on creation.
- creation_time
datetime
,optional
Date and time that the resource was created.
- modification_time
datetime
,optional
Date and time that the resource was last modified.
- created_by
str
,optional
ID of the user who created the object.
- modified_by
str
,optional
ID of the user who last modified the object.
- name
str
,optional
Name.
- execution_command
str
,optional
Command to execute. A command or execution script is required.
- use_execution_scriptbool,
optional
Whether to run the task with the execution script or the execution command.
- execution_script_id
str
,optional
Script to execute. A command or execution script is required.
- execution_level
int
Execution level for the task.
- execution_context
dict
[str
,Union
[int
,float
,str
, bool]],optional
Additional arguments to pass to the executing command.
- environment
dict
[str
,str
],optional
Environment variables to set for the executed process.
- max_execution_time
float
,optional
Maximum time in seconds for executing the task.
- num_trials
int
,optional
Maximum number of attempts for executing the task.
- store_outputbool,
optional
Whether to store the standard output of the task.
- input_file_ids
list
[str
] List of IDs of input files.
- output_file_ids
list
[str
] List of IDs of output files.
- success_criteria
SuccessCriteria
,optional
- licensing
Licensing
,optional
Licensing
object.- software_requirements
list
[Software
],optional
List of
Software
objects.- resource_requirements
ResourceRequirements
,optional
ResourceRequirements
object.- worker_context
WorkerContext
,optional
WorkerContext
object.
- id
Methods
Provides a helper function for retrieving fields to define as class members for an object.
TaskDefinition.get
(key[, default])