Skip to content

Commit 753c5ae

Browse files
author
Luca
committed
release
1 parent 31c36ba commit 753c5ae

File tree

5 files changed

+28
-20
lines changed

5 files changed

+28
-20
lines changed

fluid/scheduler/broker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ class TaskInfo:
4949
priority: str
5050
schedule: Optional[str] = None
5151
enabled: bool = True
52+
last_run_end: Optional[int] = None
53+
last_run_duration: Optional[int] = None
54+
last_run_state: Optional[str] = None
5255

5356

5457
class TaskRegistry(Dict[str, Task]):
@@ -246,6 +249,9 @@ def _decode_task(self, task: Task, data: dict):
246249
schedule=str(task.schedule) if task.schedule else None,
247250
priority=task.priority.name,
248251
enabled=info.get("enabled", True),
252+
last_run_duration=info.get("last_run_duration"),
253+
last_run_end=info.get("last_run_end"),
254+
last_run_state=info.get("last_run_state"),
249255
)
250256

251257

fluid/scheduler/task.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from typing import TYPE_CHECKING, Any, Callable, Dict, NamedTuple, Optional, Union
55
from uuid import uuid4
66

7+
from openapi.spec.utils import trim_docstring
8+
79
from fluid import log
810
from fluid.node import WorkerApplication
911
from fluid.utils import microseconds
@@ -148,7 +150,7 @@ def __init__(self, **kwargs):
148150
def __call__(self, executor: TaskExecutor) -> Task:
149151
kwargs = {
150152
"name": executor.__name__,
151-
"description": executor.__doc__,
153+
"description": trim_docstring(executor.__doc__ or ""),
152154
**self.kwargs,
153155
"executor": executor,
154156
}

poetry.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ classifiers = [
3434

3535
[tool.poetry.dependencies]
3636
python = ">=3.8,<4"
37-
aio-openapi = "^2.7.1"
37+
aio-openapi = "^2.7.2"
3838
aioredis = "^2.0.0"
3939
ujson = "^5.1.0"
4040
inflection = "^0.5.1"

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ Async utility for executing commands in sub-processes
2727
packages for AWS interaction are installed via
2828

2929
- [aiobotocore](https://github.com/aio-libs/aiobotocore)
30-
- [s3fs](https://github.com/fsspec/s3fs)(which depends on aiobotocore and therefore versions must be compatible)
30+
- [s3fs](https://github.com/fsspec/s3fs) (which depends on aiobotocore and therefore versions must be compatible)
3131
- [boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html) is installed as extra dependency of aiobotocore so versioning is compatible

0 commit comments

Comments
 (0)