Commit 3c74e7b
Fix scheduled tasks blocking Telegram message processing
Two changes that fix messages being silently dropped while heartbeat
or other scheduled tasks are running:
1. group-queue: preempt idle task containers when user messages arrive
instead of queuing messages behind a 30-minute idle timeout
2. agent-runner: scheduled tasks exit immediately after completing
instead of entering the IPC wait loop. Frees the group slot so
user messages can be processed without delay.
Also mocks transcription module in WhatsApp tests so voice note test
is deterministic regardless of local .env state.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6bca94a commit 3c74e7b
3 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
574 | 583 | | |
575 | 584 | | |
576 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
| |||
564 | 575 | | |
565 | 576 | | |
566 | 577 | | |
567 | | - | |
| 578 | + | |
568 | 579 | | |
569 | 580 | | |
570 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
66 | 78 | | |
67 | 79 | | |
68 | 80 | | |
| |||
0 commit comments