You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: add last_scheduled_task_id column to schedules (NangoHQ#2382)
DueSchedule query is too slow because for each schedules we are going
through the tasks table to find out if there is any running tasks or if
any task has been running recently.
In order to make the query faster we are adding a last_scheduled_task_id
column to schedules which is populated when scheduling a task. This
column will allow us to join schedules with tasks based on this column
and look at the state and created_at of the tasks to find due schedules
## Describe your changes
## Issue ticket number and link
## Checklist before requesting a review (skip if just adding/editing
APIs & templates)
- [ ] I added tests, otherwise the reason is:
- [ ] I added observability, otherwise the reason is:
- [ ] I added analytics, otherwise the reason is:
0 commit comments