2025-12-01
This commit is contained in:
@@ -32,9 +32,11 @@ from flamenco.manager.exceptions import ApiAttributeError
|
||||
def lazy_import():
|
||||
from flamenco.manager.model.task_status import TaskStatus
|
||||
from flamenco.manager.model.task_summary import TaskSummary
|
||||
from flamenco.manager.model.task_worker import TaskWorker
|
||||
from flamenco.manager.model.worker_task_all_of import WorkerTaskAllOf
|
||||
globals()['TaskStatus'] = TaskStatus
|
||||
globals()['TaskSummary'] = TaskSummary
|
||||
globals()['TaskWorker'] = TaskWorker
|
||||
globals()['WorkerTaskAllOf'] = WorkerTaskAllOf
|
||||
|
||||
|
||||
@@ -98,7 +100,10 @@ class WorkerTask(ModelComposed):
|
||||
'priority': (int,), # noqa: E501
|
||||
'task_type': (str,), # noqa: E501
|
||||
'updated': (datetime,), # noqa: E501
|
||||
'steps_completed': (int,), # noqa: E501
|
||||
'steps_total': (int,), # noqa: E501
|
||||
'job_id': (str,), # noqa: E501
|
||||
'worker': (TaskWorker,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
@@ -114,7 +119,10 @@ class WorkerTask(ModelComposed):
|
||||
'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
|
||||
'job_id': 'job_id', # noqa: E501
|
||||
'worker': 'worker', # noqa: E501
|
||||
}
|
||||
|
||||
read_only_vars = {
|
||||
@@ -133,6 +141,8 @@ class WorkerTask(ModelComposed):
|
||||
priority (int):
|
||||
task_type (str):
|
||||
updated (datetime):
|
||||
steps_completed (int):
|
||||
steps_total (int):
|
||||
job_id (str):
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
@@ -164,6 +174,7 @@ class WorkerTask(ModelComposed):
|
||||
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)
|
||||
@@ -240,6 +251,8 @@ class WorkerTask(ModelComposed):
|
||||
priority (int):
|
||||
task_type (str):
|
||||
updated (datetime):
|
||||
steps_completed (int):
|
||||
steps_total (int):
|
||||
job_id (str):
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
@@ -271,6 +284,7 @@ class WorkerTask(ModelComposed):
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user