-# Copyright (c) 2010-2022. The SimGrid Team. All rights reserved.
+# Copyright (c) 2010-2023. The SimGrid Team. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the license (GNU LGPL) which comes with this package.
from argparse import ArgumentParser
from dataclasses import dataclass
+from typing import List
from uuid import uuid4
import sys
SIMULATED_RESULT_SIZE_BYTES = 1024 * 1024
-def parse_requests(requests_str: str) -> list[float]:
+def parse_requests(requests_str: str) -> List[float]:
return [float(item.strip()) for item in requests_str.split(",")]
parser.add_argument(
'--platform',
type=str,
+ required=True,
help='path to the platform description'
)
parser.add_argument(
return "complete" if self.complete else "pending"
-def client(client_id: str, jobs: list[float], wait_timeout: float):
+def client(client_id: str, jobs: List[float], wait_timeout: float):
worker_mailbox: Mailbox = Mailbox.by_name("worker")
this_actor.info(f"{client_id} started")
async_job_results: list[AsyncJobResult] = []