Hey all 👋 I'm using supabase to schedule cron job...
# help
g
Hey all 👋 I'm using supabase to schedule cron jobs. I would like to know how to - How to increase the timeout? Currently, it has a timeout of 5000 ms. - store the response from the API used in the cron job Sample cron declaration:
Copy code
select
  cron.schedule(
    'daily-refresh-0500',
    '00 05 * * *',
    $$
    select status
    from
      http_post(
        'https://example.com/api/refresh',
        '{}',
        'application/json'
      )
    $$
  );
Any help on this would be great 🙏
n
Hello @gokatz! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
Can you give more info on where you are hitting or finding a 5 second timeout? To store the response you would just insert into a table when you get back the status.
n
gokatz (2022-05-28)