add runner stereotype

This commit is contained in:
2025-09-05 12:00:59 +08:00
parent 4e51158215
commit 12a6b47969
7 changed files with 55 additions and 6 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)