Commit 3dc39d4
committed
fix(kernel): dedupe cron jobs in saved_crons restore to prevent concurrent activation duplicates
If two registry entries share the same `hand_tag` and `hand_role` (a
race between concurrent `activate_hand` calls or a stale cleanup), the
loop would collect the same CronJob twice from list_jobs and replay
both via add_job — leaving duplicate jobs that fire in lockstep.
Track seen CronJobIds per role bucket so each saved job is added at
most once.1 parent e67efec commit 3dc39d4
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8610 | 8610 | | |
8611 | 8611 | | |
8612 | 8612 | | |
8613 | | - | |
8614 | | - | |
8615 | | - | |
8616 | | - | |
| 8613 | + | |
| 8614 | + | |
| 8615 | + | |
| 8616 | + | |
| 8617 | + | |
| 8618 | + | |
| 8619 | + | |
| 8620 | + | |
| 8621 | + | |
| 8622 | + | |
| 8623 | + | |
| 8624 | + | |
8617 | 8625 | | |
8618 | 8626 | | |
8619 | 8627 | | |
| |||
0 commit comments