Adding Ping URL for Cron Jobs

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
kartikbhat
Posts: 40
Joined: 02 Dec 2021, 17:18

Adding Ping URL for Cron Jobs

Post by kartikbhat » 14 Jun 2022, 05:20

I need to add ping url (third party url) to update status of cron jobs, those which are there by default on aimeos
eg: "order/service/delivery" , 'order/service/payment' etc;
help me to place that ping url on code level for these pre-exist cron jobs
TIA :)

User avatar
aimeos
Administrator
Posts: 7865
Joined: 01 Jan 1970, 00:00

Re: Adding Ping URL for Cron Jobs

Post by aimeos » 16 Jun 2022, 11:02

You have to extend from the existing job controller class in your own extension and overwrite the run() method:
https://github.com/aimeos/ai-controller ... #L162-L286

Then, configure the new class name, e.g.:

Code: Select all

controller/jobs/order/service/delivery/name = Myproject
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply