-
Notifications
You must be signed in to change notification settings - Fork 468
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
feat: workspace error handler #1799
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Deploying with Cloudflare Pages
|
I have read the CLA Document and I hereby sign the CLA |
recheck |
backend/windmill-queue/src/jobs.rs
Outdated
if let Some(error_handler) = error_handler { | ||
run_error_handler( | ||
rsmq.clone(), | ||
queued_job, | ||
db, | ||
result, | ||
&error_handler.strip_prefix("script/").unwrap(), | ||
false, | ||
None, | ||
) | ||
.await?; | ||
} | ||
|
||
if let Some(ref global_error_handler) = *GLOBAL_ERROR_HANDLER_PATH_IN_ADMINS_WORKSPACE { | ||
run_error_handler( | ||
rsmq.clone(), | ||
queued_job, | ||
db, | ||
result, | ||
global_error_handler, | ||
true, | ||
tag, | ||
) | ||
.await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you do this, failure of error handler will prevent global error handler to trigger :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You want to run both and return a new meta error if error that is merge or one of them
No description provided.