add workflow lifecycle

This commit is contained in:
jxxghp
2025-02-16 16:53:38 +08:00
parent 0b7cf305a0
commit b86d06f632
7 changed files with 95 additions and 15 deletions

View File

@@ -21,6 +21,7 @@ class FetchRssAction(BaseAction):
"""
获取RSS资源列表
"""
@property
def name(self) -> str:
return "获取RSS资源列表"
@@ -31,3 +32,9 @@ class FetchRssAction(BaseAction):
async def execute(self, params: FetchRssParams, context: ActionContext) -> ActionContext:
pass
def is_done(self, context: ActionContext) -> bool:
pass
def is_success(self, context: ActionContext) -> bool:
pass