minicron icon indicating copy to clipboard operation
minicron copied to clipboard

Make `minicron run` API requests async

Open saravana91mobiles opened this issue 8 years ago • 5 comments

can we stop execution o/p to store in db..

and more over

if we run cron in minicron run 'php test.php'.... then cron script is 2 x slower than php test.php.

any idea how to solve this .

saravana91mobiles avatar Feb 08 '17 13:02 saravana91mobiles

What do you mean by o/p?

jamesrwhite avatar Feb 08 '17 13:02 jamesrwhite

There will be some overhead with running the cron under minicron as it's sending api requests after each line of output. I'm surprised it's 2x though. This is perhaps something that can be improved in the future by running the api requests in a separate thread or something but I don't believe there is an immediate fix for this right now.

jamesrwhite avatar Feb 08 '17 13:02 jamesrwhite

o/p -- all execution Output are stored in DB 'job_execution_outputs' .. for a lengthy cron which runs 1 hr ..the output is bigger in size.. so the DB size increases

saravana91mobiles avatar Feb 08 '17 13:02 saravana91mobiles

At the moment that's not configurable no but I would like to make it so in the future. See: https://github.com/jamesrwhite/minicron/issues/83

jamesrwhite avatar Feb 08 '17 13:02 jamesrwhite

I'll look into the overhead when I get a chance.

jamesrwhite avatar Feb 08 '17 13:02 jamesrwhite