Split Cronjobs. Is it possible?

  • Posts: 156
  • Thank you received: 0
6 years 2 weeks ago #290454

-- HikaShop version -- : 3.3.2
-- Joomla version -- : 3.8.6
-- PHP version -- : 5.6

Is it possible through Hikashop or C-Panel (server) to set multiple cronjops for upload more than one CSV file?

Last edit: 6 years 2 weeks ago by SuX.

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
6 years 2 weeks ago #290458

Hello,

That's not related to the cron but only related to the plugin.
You can either try to duplicate the plugin to have other instances (and other settings) or perform a bigger modification to use the HikaShop multiple-instance system.
In both case, some custom development would be required.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 156
  • Thank you received: 0
6 years 2 weeks ago #290758

Jerome wrote: Hello,

That's not related to the cron but only related to the plugin.
You can either try to duplicate the plugin to have other instances (and other settings) or perform a bigger modification to use the HikaShop multiple-instance system.
In both case, some custom development would be required.

Regards,


Then, it is just enough duplicate the plugin in order to upload CSV1, CSV2, CSV3....and so on...
Right?

Please Log in or Create an account to join the conversation.

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
6 years 2 weeks ago #290783

Hi,

If you duplicate the plugin and split your CSV, you could indeed split the import into several processes.
You don't even need different cron jobs. Just one is enough.
You just need to configure the import plugins settings so that they are triggered on different threads.
So for example, if you HikaShop cron is configured to be triggered every 15 minutes, and that the plugins are configured with a frequency of 1 hours, you can have 4 plugins triggered one each 15 minutes. You can use the last triggered date field of the plugin to schedule the plugins on different threads of the cron.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum