Source code orco/jobsetup.py

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
class JobSetup:
    """
    Structure for configuring Job computation.

    Attributes:

    - timeout (int|None): Time limit (in seconds) for computation. If the computation is not finished
               before the limit, an exception is thrown. Default: No time limit.
    - relay (bool): If true, stdout/stderr, redirect output also into the executor's console.
    """

    __slots__ = ("runner_name", "timeout", "setup", "relay")

    def __init__(self, runner_name="local", timeout=None, relay=False, setup=None):
        self.runner_name = runner_name
        self.timeout = timeout
        self.setup = setup
        self.relay = relay