#26813·twenty

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:

  1. Calendar sync imports the event, and Call Recorder creates the recording (with the id derived from the meeting key) and schedules a Recall bot.
  2. The organizer cancels the event. The import service removes the channel association and deletes the orphaned calendarEvent with repository.delete, which emits calendarEvent.destroyed.
  3. callRecording.calendarEvent is onDelete: SET_NULL, so the recording's calendarEventId is already null when the app handles the event.
  4. reconcile-call-recorder-calendar-event builds the removed occurrence from properties.before and runs reconcileCanceledMeeting, which looks recordings up with findCallRecordingsByCalendarEventIds. Nothing matches any more, so the meeting is skipped.
  5. No recovery job cancels the bot afterwards: cleanup-orphaned-recall-bots spares it because a REQUESTED recording 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 reconcileCanceledMeeting can also find the policy-managed recording by computeCallRecordingIdForMeeting(realMeetingKey). We have a PR for this.
  • Related, server side: for kind === 'delete', runMutation in workspace-repository.ts snapshots 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.