database - Cron Jobs, long php scripts and time limit (this not related to server time limit but to cron job time limit) -
i have database have save lot of data.
data recovered unofficial api retrieve data official site.
unofficial api 1 can use, because official api short developed, unofficial api really slow.
couldn't speed process.
to automate data update, i've created php pages recovers data unofficial api, combine , store database.
these pages refresh every 30 seconds continuing process in order avoid server time limit, set 30 secs , not modifiable.
than i've created multiple cron jobs.
there's problem.
cron jobs work @ least 30/60/90/120 seconds, whole data update process can goes on 20/30 mins.
do have idea on how solve problem?
i'll more clear, sorry.
the problem this: - script long 20/30 mins, divided in multiple auto-loads, recover , load data database; - cron job works max 120 seconds returns time-out error.
i need, if possibile, find way have data loaded database, 4 time day.
do have idea?
second update.
this not question related time limit of server, i've overcome problem cutting script in pieces.
metter of cron job time limit.
cannot (that know) accelerate script execution, data recover long , need time execute all, cron jobs fast.
Comments
Post a Comment