add runner stereotype
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
from pyboot import stereotype
|
||||
from pyboot.runner import Runner
|
||||
|
||||
@stereotype.runner("data_generator")
|
||||
class DataGenerator(Runner):
|
||||
def __init__(self, config_path: str):
|
||||
super().__init__(config_path)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
from pyboot import stereotype
|
||||
from pyboot.runner import Runner
|
||||
|
||||
@stereotype.runner("data_recorder")
|
||||
class DataRecorder(Runner):
|
||||
def __init__(self, config_path: str):
|
||||
super().__init__(config_path)
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
from pyboot import stereotype
|
||||
from pyboot.runner import Runner
|
||||
from pyboot.utils.log import Log
|
||||
from task_gen_dependencies.task_generate import OldTaskGenerator
|
||||
|
||||
|
||||
@stereotype.runner("task_generator")
|
||||
class TaskGenerator(Runner):
|
||||
def __init__(self, config_path: str):
|
||||
super().__init__(config_path)
|
||||
|
||||
@@ -2,9 +2,11 @@ import os
|
||||
import shutil
|
||||
import json
|
||||
|
||||
from pyboot import stereotype
|
||||
from pyboot.runner import Runner
|
||||
from pyboot.utils.log import Log
|
||||
|
||||
@stereotype.runner("task_templates_divider")
|
||||
class TaskTemplatesDivider(Runner):
|
||||
def __init__(self, config_path: str):
|
||||
super().__init__(config_path)
|
||||
|
||||
Reference in New Issue
Block a user