pg_cron icon indicating copy to clipboard operation
pg_cron copied to clipboard

Add function to run cron job manually

Open caseyandgina opened this issue 2 years ago • 2 comments

Sometimes it would be nice to be able to run a cron job manually, for example when deploying a new job that is scheduled to run every day in the middle of the night, but you want to give it an initial run when first deployed to test it out and get the effect of it running right away, rather than getting up the next morning only to discover some error in the job_run_details table.

Would it be possible to add a "run" function that would manually fire off a cron job by ID or name?

caseyandgina avatar Jan 05 '23 12:01 caseyandgina

I support! It will be very useful. I just wanted to create such a issue

sgrinko avatar Jan 29 '23 08:01 sgrinko

Is there a plan to implement this opportunity?

sgrinko avatar Nov 20 '23 10:11 sgrinko