You are here:  » Multiple fetch/import/cron tasks simultaneously


Multiple fetch/import/cron tasks simultaneously

Submitted by sydney880 on Wed, 2017-11-15 07:09 in

Hi,

Something I've always been curious about: Is it possible to do multiple fetch, import or cron tasks simultaneously?

For example, If I have the cron scheduled each day and its doing importing, and then I add a new feed to the website and decide to import it through the website, will it cause a problem?

If yes, if I setup two installations (eg one in the home directory and one in a subfolder), but they both used the same "feeds" folder, would that work? Or would it still cause problems because they are both using the same database?

Thanks

Submitted by support on Wed, 2017-11-15 09:23

Hello Sydney,

cron.php and import.php @ALL use the "zero downtime" method where products are imported into a temporary table which is then switched over to become the new live products table at the end of the process; so in this case, feeds should not be imported manually at the same time.

However a sub-directory installation (even if same MySQL database with different database table prefix) just using the same feeds folder is no problem...

Cheers,
David.
--
PriceTapestry.com

Submitted by sydney880 on Sun, 2017-11-19 15:23

So I presume a sub-directory installation using the same database table prefix would not be OK?

Submitted by support on Mon, 2017-11-20 09:11

Hello Sydney,

That's correct - same database / same database table prefix - should not have manual import processes taking place at the same time as CRON...

Cheers,
David.
--
PriceTapestry.com