Skip to content

Commit 0b6a708

Browse files
committed
Use ABC on ScheduledExternalProgramTask and ScheduledTask
1 parent 1f6e29f commit 0b6a708

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bioluigi/scheduled_external_program.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import datetime
1111
import os
12+
from abc import ABC
1213
from datetime import timedelta
1314
from typing import Optional
1415

@@ -19,7 +20,7 @@
1920

2021
cfg = BioluigiConfig()
2122

22-
class ScheduledExternalProgramTask(ScheduledTask, luigi.Task):
23+
class ScheduledExternalProgramTask(ScheduledTask, ABC):
2324
"""
2425
Variant of :class:`luigi.contrib.external_program.ExternalProgramTask` that
2526
executes the task with a :class:`Scheduler`.

bioluigi/schedulers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
cfg = BioluigiConfig()
1919

20-
class ScheduledTask(ABC, luigi.Task):
20+
class ScheduledTask(luigi.Task, ABC):
2121
"""Interface for Luigi tasks that can be scheduled."""
2222
walltime: timedelta
2323

0 commit comments

Comments
 (0)