mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Bug fix ## What is the current behavior? Cron jobs using pg_cron's `$` syntax (representing 'last day of month') show 'Unable to parse next run for job' in the dashboard's Next run column, even though these are valid pg_cron schedules. ## What is the new behavior? The dashboard now correctly parses schedules using `$` and displays the proper next run time. ## Root Cause pg_cron uses `$` for 'last day of month', but the `cron-parser` library used by Studio uses `L` for the same purpose. The `$` character was causing the parsing to fail. ## Fix Normalize pg_cron's `$` syntax to cron-parser's `L` syntax before parsing. Both represent 'last day of month' - it's just a syntax difference between the two systems. Fixes #42176 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved cron job scheduling to correctly calculate next-run times for pg_cron-compatible schedule expressions. --------- Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>