Call recorder: switching Recording Bot Off then On does not reschedule the bot until the nightly recovery run
Author: vladbisceanuCreated Sep 28, 2026Updated Sep 28, 2026
Bug Description
On a self-hosted Twenty v2.42.6 with Call Recorder 1.14.1, switching a calendar event's Recording Bot field Off and then back On leaves the meeting without a bot until the 03:00 UTC process-pending-call-recording-requests run. A meeting that starts before then is not recorded.
Steps:
- A synced event with a Meet link has a scheduled bot:
recordingRequestStatus: REQUESTED,externalBotIdset, andbotScheduleAttemptedAtfrom when it was scheduled (in our case two days earlier). - Set
Recording Botto Off.cancelCallRecordingRequestsetsCANCELED, deletes the Recall bot and clearsexternalBotId. - Set it back to On. Reconciliation sets
REQUESTEDagain, andschedule-recall-bot-on-call-recording-updatefires (since #26272 it treats the empty bot id as pending). resumePendingCallRecordingcallscanRescheduleCallRecordingWithoutRecallLookup, which returns false becausebotScheduleAttemptedAtis still set and older than the 12-hour resend window (the idempotency key check also fails whenever the join-early setting changed). The flow returnsdeferred, and the row waits for the recovery cron.
Expected behavior
Re-requesting a recording whose bot was cancelled schedules a new bot right away, which is what the trigger's comment describes for "a canceled request re-requested".
Technical inputs
flows/cancel-call-recording-request.util.tsclearsexternalBotIdonce Recall confirms the cancel, but keepsbotScheduleAttemptedAtandbotScheduleIdempotencyKey. At that point the attempt is resolved, the same situation as the 404 branch inflows/reschedule-call-recording-bot.util.ts, which clears all three fields.- Clearing
botScheduleAttemptedAtandbotScheduleIdempotencyKeyby hand, then movingrecordingRequestStatusfromCANCELEDtoREQUESTED, scheduled a new bot within seconds on our instance. - One thing the fix should account for: the recreated bot is sent with the same idempotency key as the cancelled one when the meeting and join time are unchanged. In our test the cancelled attempt was more than a day old and Recall created a new bot, but a re-request inside Recall's idempotency retention might be deduplicated to the deleted bot.
We can open a PR with the fix and a test.
Source: twentyhq/twenty