A couple of questions on Supabase edge functions in DART...
a). Running a job at mid night every day
I want to execute a job at midnight every day to perform various end of day data summarization and snapshot tasks. Can this be setup as a DART edge function? If so, how I would schedule this? (Another reason for having these as an edge function is that I may wish to launch the 'end-of-day' process on demand via a web call).
b). Creating edge project within an existing client side Flutter project?
Can I create a new edge project a sub folder within an existing Flutter project? This is because I want to reuse data model classes already defined in the Flutter project.
You can setup cron jobs using pg_cron and pg_net in Supabase.
Once you enable the extensions in your Supabase dashboard, you can run a query something like this to setup cron jobs.
For more details, you can follow the official guide: https://supabase.com/docs/guides/database/extensions/pg_cron