Making a webhook request after cron job execution could be useful for notification or chaining other actions together after a cron job script/program does its work.
From now on, EasyCron starts supporting webhook request after cron job execution. Along the request, users can choose to send all or some of the following fields:
- Cron Job ID (will be received in your webhook script as parameter "cron_job_id")
- Cron Job Name (as parameter "cron_job_name")
- Cron Job URL (as parameter "cron_job_url")
- Cron Job Execution Status (as parameter "cron_job_execution_status". "Success" or "Failure")
- Cron Job Execution Error (as parameter "cron_job_execution_error". Will be empty when execution succeeds)
You could also choose a HTTP method to make the request from GET, POST, HEAD, PUT, PATCH, DELETE, CONNECT, OPTIONS and TRACE.
As everybody knows, email and maybe a few other contact methods (SMS, Push message, etc.) are not very dependable ways for notification. By using the webhook mechanism, users can do a more reliable notification in their webhook target script (Even sending emails to themselves from their own email address has higher arrival rate). And more than this, users can actually do almost anything in the webhook script. This could greatly extend the post-execution functionality of EasyCron.
Welcome to share how the webhook feature help you and simplify your work in the comments.