Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Make minicron run API requests async #267

Open
saravana91mobiles opened this issue Feb 8, 2017 · 5 comments
Open

Make minicron run API requests async #267

saravana91mobiles opened this issue Feb 8, 2017 · 5 comments

Comments

@saravana91mobiles
Copy link

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 .

@jamesrwhite
Copy link
Owner

What do you mean by o/p?

@jamesrwhite
Copy link
Owner

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.

@saravana91mobiles
Copy link
Author

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

@jamesrwhite
Copy link
Owner

At the moment that's not configurable no but I would like to make it so in the future. See: #83

@jamesrwhite
Copy link
Owner

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

@jamesrwhite jamesrwhite changed the title can we stop execution o/p to store in db Investigate minicron run performance overhead vs normal execution Feb 12, 2017
@jamesrwhite jamesrwhite changed the title Investigate minicron run performance overhead vs normal execution Make minicron run API requests async Feb 26, 2017
@jamesrwhite jamesrwhite added this to the future milestone May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants