Call recorder: canceling a synced meeting leaves its Recall bot scheduled
Author: vladbisceanuCreated Sep 28, 2026Updated Sep 28, 2026
Bug Description
When the organizer cancels a synced meeting, its Call Recorder bot stays scheduled and joins the cancelled meeting. We saw it on a self-hosted instance with three Google Meet events that were cancelled a minute or two after being created; the code on main behaves the same way.
What happens:
- Calendar sync imports the event, and Call Recorder creates the recording (with the id derived from the meeting key) and schedules a Recall bot.
- The organizer cancels the event. The import service removes the channel association and deletes the orphaned
calendarEventwithrepository.delete, which emitscalendarEvent.destroyed. callRecording.calendarEventisonDelete: SET_NULL, so the recording'scalendarEventIdis already null when the app handles the event.reconcile-call-recorder-calendar-eventbuilds the removed occurrence fromproperties.beforeand runsreconcileCanceledMeeting, which looks recordings up withfindCallRecordingsByCalendarEventIds. Nothing matches any more, so the meeting is skipped.- No recovery job cancels the bot afterwards:
cleanup-orphaned-recall-botsspares it because aREQUESTEDrecording still claims it, and the other crons start from existing calendar events or bot-less rows.
Expected behavior
Cancelling a meeting cancels its bot.
Technical inputs
- The removed occurrence already carries the meeting key, so
reconcileCanceledMeetingcan also find the policy-managed recording bycomputeCallRecordingIdForMeeting(realMeetingKey). We have a PR for this. - Related, server side: for
kind === 'delete',runMutationinworkspace-repository.tssnapshots a single row for the destroyed event ("The delete snapshot keeps a single row for the event"). When one sync pass deletes several cancelled events in one call, only the first of them reaches app triggers, so the others would keep their bots even with the fix above. The PR does not change this.
Source: twentyhq/twenty