-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: cancel workflows on cancel booking #17871
base: main
Are you sure you want to change the base?
fix: cancel workflows on cancel booking #17871
Conversation
@VK-RED is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (11/27/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (11/27/24)1 label was added to this PR based on Keith Williams's automation. "Add foundation team as reviewer" took an action on this PR • (11/27/24)1 reviewer was added to this PR based on Keith Williams's automation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VK-RED would be great if you add a loom video.
Hi @Praashh here is a screen recording ScreencastScreencast.from.2024-11-27.18-38-30.mp4No Emails Received |
@CarinaWolli Can you please take a look at this one? 🙏 |
What does this PR do?
Removed deleteScheduledSend function in scheduledEmailRemainder cron api, as this lead to removing the cancelled label on the scheduled emails, thus causing the users to receive emails for cancelled event.
According to sendGrid docs :
Link to SendGrid docs
Previously ( when deleteScheduledSend is present )
Event Created
Event Cancelled
Simulated a Cron
Simulated a cron to execute deleteScheduledSend to delete emails in the queue.
https://github.com/calcom/cal.com/blob/main/packages/features/ee/workflows/api/scheduleEmailReminders.ts#L80
Ideally this cron action should have deleted the emails in the queue, and the users should not get any email regarding the cancelled booking
Email Received on Cancelled Booking
Did not received SMS or Whatsapp Reminder, but still received email on the cancelled booking.
Updated Changes ( deleteScheduledSend is removed )
Event Created
Event Cancelled
Again Simulated the cron
https://github.com/calcom/cal.com/blob/main/packages/features/ee/workflows/api/scheduleEmailReminders.ts#L80
No Emails received on Cancelled Booking
No emails , SMS or Whatsapp reminder is received.
Mandatory Tasks (DO NOT REMOVE)