refactory: task generate

This commit is contained in:
2025-09-04 16:28:11 +08:00
parent 87b3198e26
commit da022d4f83
19 changed files with 2926 additions and 22 deletions

34
app.py
View File

@@ -1,37 +1,37 @@
from pyapp.application import PyApplication
from pyboot.application import PybootApplication
from runners.task_generator import TaskGenerator
from runners.data_generator import DataGenerator
from runners.data_recorder import DataRecorder
from runners.task_templates_divider import TaskTemplatesDivider
@PyApplication("agent")
class AgentApp():
@PybootApplication("agent")
class AgentApp:
@staticmethod
def start():
TaskGenerator(config_path="configs/task_generator.json").run()
DataGenerator(config_path="configs/data_generator.json").run()
DataRecorder(config_path="configs/data_recorder.json").run()
TaskGenerator(config_path="configs/generate_task_config.yaml").run()
DataGenerator(config_path="configs/generate_data_config.yaml").run()
DataRecorder(config_path="configs/record_data_config.yaml").run()
@PyApplication("divide_task")
class DivideTaskApp():
@PybootApplication("divide_task")
class DivideTaskApp:
@staticmethod
def start():
TaskTemplatesDivider(config_path="configs/divide_task_config.yaml").run()
@PyApplication("generate_task")
class GenerateTaskApp():
@PybootApplication("generate_task")
class GenerateTaskApp:
@staticmethod
def start():
TaskGenerator(config_path="configs/task_generator.json").run()
TaskGenerator(config_path="configs/generate_task_config.yaml").run()
@PyApplication("generate_data")
class GenerateDataApp():
@PybootApplication("generate_data")
class GenerateDataApp:
@staticmethod
def start():
DataGenerator(config_path="configs/data_generator.json").run()
DataGenerator(config_path="configs/generate_data_config.yaml").run()
@PyApplication("record_data")
class RecordDataApp():
@PybootApplication("record_data")
class RecordDataApp:
@staticmethod
def start():
DataRecorder(config_path="configs/data_recorder.json").run()
DataRecorder(config_path="configs/record_data_config.yaml").run()