Commit 5a4c8c9
committed
fix(crons): ensure felizdia runs exactly once per day
- Leveraged the new 'locks' table to record the execution of the felizdia cron for the current date.
- Persists the skip/send state immediately, so subsequent retries on the same day won't trigger the message again.
- Helps prevent duplicate daily greetings on flaky cron schedules or manual retries.1 parent 40416c1 commit 5a4c8c9
1 file changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
26 | 47 | | |
| 48 | + | |
27 | 49 | | |
28 | | - | |
| 50 | + | |
29 | 51 | | |
30 | 52 | | |
31 | 53 | | |
| |||
0 commit comments