Skip to content

Commit af75500

Browse files
emmaling27Convex, Inc.
authored andcommitted
Delete args table when deleting scheduled functions table (#43553)
The scheduled job args table is useless detached from the scheduled jobs table, so we should delete it when we're deleting scheduled jobs table. GitOrigin-RevId: ea9a479bf09054b624fdcf79f63ba6980d12bdf7
1 parent f765835 commit af75500

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/application/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ use model::{
272272
ModuleModel,
273273
},
274274
scheduled_jobs::{
275+
args::ScheduledJobArgsTable,
275276
ScheduledJobsTable,
276277
SchedulerModel,
277278
},
@@ -2970,6 +2971,9 @@ impl<RT: Runtime> Application<RT> {
29702971
model
29712972
.replace_with_empty_table(ScheduledJobsTable, component_id.into())
29722973
.await?;
2974+
model
2975+
.replace_with_empty_table(ScheduledJobArgsTable, component_id.into())
2976+
.await?;
29732977
let component = tx.must_component_path(component_id)?;
29742978
self.commit_with_audit_log_events(
29752979
tx,

0 commit comments

Comments
 (0)