Skip to content

Commit

Permalink
fix: every day at 4.00
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Milla Martinez committed Nov 21, 2024
1 parent 010df60 commit dafcb1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ grant all privileges on all tables in schema cron to postgres;

select cron.schedule (
'delete_expired_records', -- name of the cron job
'*/5 * * * *', -- Every day at 4:00am (GMT)
'0 4 * * *', -- Every day at 4:00am (GMT)
$$ delete from public.help_requests where created_at < now() - interval '7 days'; $$
);

Expand Down

0 comments on commit dafcb1c

Please sign in to comment.