2025-12-01

This commit is contained in:
2026-03-17 14:58:51 -06:00
parent 183e865f8b
commit 4b82b57113
6846 changed files with 954887 additions and 162606 deletions
@@ -31,7 +31,9 @@ from flamenco.manager.exceptions import ApiAttributeError
def lazy_import():
from flamenco.manager.model.task_status import TaskStatus
from flamenco.manager.model.task_worker import TaskWorker
globals()['TaskStatus'] = TaskStatus
globals()['TaskWorker'] = TaskWorker
class TaskSummary(ModelNormal):
@@ -94,6 +96,9 @@ class TaskSummary(ModelNormal):
'priority': (int,), # noqa: E501
'task_type': (str,), # noqa: E501
'updated': (datetime,), # noqa: E501
'steps_completed': (int,), # noqa: E501
'steps_total': (int,), # noqa: E501
'worker': (TaskWorker,), # noqa: E501
}
@cached_property
@@ -109,6 +114,9 @@ class TaskSummary(ModelNormal):
'priority': 'priority', # noqa: E501
'task_type': 'task_type', # noqa: E501
'updated': 'updated', # noqa: E501
'steps_completed': 'steps_completed', # noqa: E501
'steps_total': 'steps_total', # noqa: E501
'worker': 'worker', # noqa: E501
}
read_only_vars = {
@@ -118,7 +126,7 @@ class TaskSummary(ModelNormal):
@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, id, name, status, index_in_job, priority, task_type, updated, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, id, name, status, index_in_job, priority, task_type, updated, steps_completed, steps_total, *args, **kwargs): # noqa: E501
"""TaskSummary - a model defined in OpenAPI
Args:
@@ -129,6 +137,8 @@ class TaskSummary(ModelNormal):
priority (int):
task_type (str):
updated (datetime):
steps_completed (int):
steps_total (int):
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
@@ -161,6 +171,7 @@ class TaskSummary(ModelNormal):
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
worker (TaskWorker): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -195,6 +206,8 @@ class TaskSummary(ModelNormal):
self.priority = priority
self.task_type = task_type
self.updated = updated
self.steps_completed = steps_completed
self.steps_total = steps_total
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
@@ -215,7 +228,7 @@ class TaskSummary(ModelNormal):
])
@convert_js_args_to_python_args
def __init__(self, id, name, status, index_in_job, priority, task_type, updated, *args, **kwargs): # noqa: E501
def __init__(self, id, name, status, index_in_job, priority, task_type, updated, steps_completed, steps_total, *args, **kwargs): # noqa: E501
"""TaskSummary - a model defined in OpenAPI
Args:
@@ -226,6 +239,8 @@ class TaskSummary(ModelNormal):
priority (int):
task_type (str):
updated (datetime):
steps_completed (int):
steps_total (int):
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
@@ -258,6 +273,7 @@ class TaskSummary(ModelNormal):
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
worker (TaskWorker): [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -290,6 +306,8 @@ class TaskSummary(ModelNormal):
self.priority = priority
self.task_type = task_type
self.updated = updated
self.steps_completed = steps_completed
self.steps_total = steps_total
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \