task
Task
¶
Bases: _TaskBaseV1
, SQLModel
Task model
Attributes:
Name | Type | Description |
---|---|---|
id |
Optional[int]
|
Primary key |
command |
str
|
Executable command |
input_type |
str
|
Expected type of input |
output_type |
str
|
Expected type of output |
meta |
Optional[dict[str, Any]]
|
Additional metadata related to execution (e.g. computational resources) |
source |
str
|
inherited from |
name |
str
|
inherited from |
args_schema |
Optional[dict[str, Any]]
|
JSON schema of task arguments |
args_schema_version |
Optional[str]
|
label pointing at how the JSON schema of task arguments was generated |
Source code in fractal_server/app/models/v1/task.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|
default_args_from_args_schema: dict[str, Any]
property
¶
Extract default arguments from args_schema