Skip to content

Commit 00d131a

Browse files
nipunn1313Convex, Inc.
authored andcommitted
Drop a couple errors from going to sentry. (#38275)
GitOrigin-RevId: dd429d37181496b4456270424af4b122d5d22c6c
1 parent 0feb287 commit 00d131a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

crates/application/src/cron_jobs/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ impl<RT: Runtime> CronJobContext<RT> {
806806
mutation_retry_count.is_none(),
807807
"Actions should not have mutation_retry_count set"
808808
);
809-
let mut err = anyhow::anyhow!(ErrorMetadata::bad_request(
809+
let err = anyhow::anyhow!(ErrorMetadata::bad_request(
810810
"SkippingPastScheduledRuns",
811811
format!(
812812
"Skipping {num_skipped} run(s) of job {job_id} because multiple \
@@ -828,7 +828,7 @@ impl<RT: Runtime> CronJobContext<RT> {
828828
context,
829829
)
830830
.await?;
831-
report_error(&mut err).await;
831+
tracing::error!("{err:#}");
832832
},
833833
UdfType::Query | UdfType::HttpAction => {
834834
anyhow::bail!("Executing unexpected function type as a cron")

crates/errors/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ impl ErrorMetadata {
491491

492492
match self.code {
493493
ErrorCode::ClientDisconnect => None,
494+
ErrorCode::BadRequest if self.short_msg == "BackendIsNotRunning" => None,
494495
ErrorCode::BadRequest
495496
| ErrorCode::Conflict
496497
| ErrorCode::NotFound

0 commit comments

Comments
 (0)