- New states: waiting (step/task), rejected (step) - New tables: pipeline_human_tasks, pipeline_step_types - New module: step_registry.py — pluggable step_type metadata - New module: human.py — human_complete, approval_approve, approval_reject - Executor: detects interactive step_types, creates human_tasks, enters waiting - Reject with rollback: approval_reject(rollback_to=step) resets steps and re-runs - API: human_task_complete, approval_approve, approval_reject, human_task_list - API: pipeline_step_types, pipeline_register_step_type, pipeline_unregister_step_type - Built-in interactive types: human_task, approval_gate - Updated DDL and appcodes
30 lines
1.0 KiB
Python
30 lines
1.0 KiB
Python
"""pipeline_service - 通用产线执行引擎模块"""
|
|
|
|
from .init import (
|
|
load_pipeline_service,
|
|
pipeline_submit,
|
|
pipeline_list,
|
|
pipeline_detail,
|
|
pipeline_node,
|
|
pipeline_modify,
|
|
pipeline_pause,
|
|
pipeline_resume,
|
|
pipeline_cancel,
|
|
pipeline_handlers,
|
|
pipeline_step_types,
|
|
pipeline_register_step_type,
|
|
pipeline_unregister_step_type,
|
|
)
|
|
from .handler import register_handler, list_handlers, register_default_handler
|
|
from .handlers_ktv import register_ktv_handlers
|
|
from .step_registry import register_step_type, get_step_type, list_step_types, load_builtin_types
|
|
from .human import human_complete, approval_approve, approval_reject, human_list
|
|
from .state import (
|
|
STATE_PENDING, STATE_RUNNING, STATE_COMPLETED, STATE_FAILED, STATE_SKIPPED,
|
|
STATE_WAITING, STATE_REJECTED,
|
|
TASK_SUBMITTED, TASK_RUNNING, TASK_COMPLETED, TASK_FAILED, TASK_PAUSED, TASK_CANCELLED, TASK_WAITING,
|
|
HUMAN_PENDING, HUMAN_SUBMITTED, HUMAN_APPROVED, HUMAN_REJECTED, HUMAN_EXPIRED,
|
|
)
|
|
|
|
__version__ = "3.0.0"
|