Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

渲染模板失败导致工作流直接退出 #30

Open
perillaroc opened this issue May 17, 2022 · 0 comments
Open

渲染模板失败导致工作流直接退出 #30

perillaroc opened this issue May 17, 2022 · 0 comments
Assignees

Comments

@perillaroc
Copy link
Owner

perillaroc commented May 17, 2022

运行工作流时使用 finally 语句会忽略所有异常

loop = asyncio.new_event_loop()
try:
    loop.run_until_complete(run_takler(server))
except Exception as e:
    print(e)
finally:
    print("exiting flow loop...")
    loop.run_until_complete(server.stop())
    loop.close()

模板渲染异常会触发 Jinja2 异常,从而导致工作流直接退出。

@perillaroc perillaroc self-assigned this May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant