File tree Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change
1
+ from executorlib .executor .base import BaseExecutor
1
2
from executorlib .executor .flux import (
2
3
FluxClusterExecutor ,
3
4
FluxJobExecutor ,
13
14
14
15
__all__ : list [str ] = [
15
16
"get_cache_data" ,
17
+ "BaseExecutor" ,
16
18
"FluxJobExecutor" ,
17
19
"FluxClusterExecutor" ,
18
20
"SingleNodeExecutor" ,
Original file line number Diff line number Diff line change 1
1
import queue
2
+ from abc import ABC
2
3
from concurrent .futures import (
3
4
Executor as FutureExecutor ,
4
5
)
10
11
from executorlib .task_scheduler .base import TaskSchedulerBase
11
12
12
13
13
- class ExecutorBase (FutureExecutor ):
14
+ class BaseExecutor (FutureExecutor , ABC ):
14
15
"""
15
16
Interface class for the executor.
16
17
Original file line number Diff line number Diff line change 1
1
from typing import Callable , Optional , Union
2
2
3
- from executorlib .executor .base import ExecutorBase
3
+ from executorlib .executor .base import BaseExecutor
4
4
from executorlib .standalone .inputcheck import (
5
5
check_command_line_argument_lst ,
6
6
check_init_function ,
17
17
from executorlib .task_scheduler .interactive .onetoone import OneProcessTaskScheduler
18
18
19
19
20
- class FluxJobExecutor (ExecutorBase ):
20
+ class FluxJobExecutor (BaseExecutor ):
21
21
"""
22
22
The executorlib.Executor leverages either the message passing interface (MPI), the SLURM workload manager or
23
23
preferable the flux framework for distributing python functions within a given resource allocation. In contrast to
@@ -202,7 +202,7 @@ def __init__(
202
202
)
203
203
204
204
205
- class FluxClusterExecutor (ExecutorBase ):
205
+ class FluxClusterExecutor (BaseExecutor ):
206
206
"""
207
207
The executorlib.Executor leverages either the message passing interface (MPI), the SLURM workload manager or
208
208
preferable the flux framework for distributing python functions within a given resource allocation. In contrast to
Original file line number Diff line number Diff line change 1
1
from typing import Callable , Optional , Union
2
2
3
- from executorlib .executor .base import ExecutorBase
3
+ from executorlib .executor .base import BaseExecutor
4
4
from executorlib .standalone .inputcheck import (
5
5
check_command_line_argument_lst ,
6
6
check_gpus_per_worker ,
17
17
from executorlib .task_scheduler .interactive .onetoone import OneProcessTaskScheduler
18
18
19
19
20
- class SingleNodeExecutor (ExecutorBase ):
20
+ class SingleNodeExecutor (BaseExecutor ):
21
21
"""
22
22
The executorlib.Executor leverages either the message passing interface (MPI), the SLURM workload manager or
23
23
preferable the flux framework for distributing python functions within a given resource allocation. In contrast to
Original file line number Diff line number Diff line change 1
1
from typing import Callable , Optional , Union
2
2
3
- from executorlib .executor .base import ExecutorBase
3
+ from executorlib .executor .base import BaseExecutor
4
4
from executorlib .standalone .inputcheck import (
5
5
check_init_function ,
6
6
check_plot_dependency_graph ,
18
18
)
19
19
20
20
21
- class SlurmClusterExecutor (ExecutorBase ):
21
+ class SlurmClusterExecutor (BaseExecutor ):
22
22
"""
23
23
The executorlib.Executor leverages either the message passing interface (MPI), the SLURM workload manager or
24
24
preferable the flux framework for distributing python functions within a given resource allocation. In contrast to
@@ -194,7 +194,7 @@ def __init__(
194
194
)
195
195
196
196
197
- class SlurmJobExecutor (ExecutorBase ):
197
+ class SlurmJobExecutor (BaseExecutor ):
198
198
"""
199
199
The executorlib.Executor leverages either the message passing interface (MPI), the SLURM workload manager or
200
200
preferable the flux framework for distributing python functions within a given resource allocation. In contrast to
You can’t perform that action at this time.
0 commit comments