File: manager_record.py

package info (click to toggle)
python-parsl 2025.01.13%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,072 kB
  • sloc: python: 23,817; makefile: 349; sh: 276; ansic: 45
file content (20 lines) | stat: -rw-r--r-- 455 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from datetime import datetime
from typing import Any, List, Optional

from typing_extensions import TypedDict


class ManagerRecord(TypedDict, total=False):
    block_id: Optional[str]
    start_time: float
    tasks: List[Any]
    worker_count: int
    max_capacity: int
    active: bool
    draining: bool
    hostname: str
    last_heartbeat: float
    idle_since: Optional[float]
    timestamp: datetime
    parsl_version: str
    python_version: str