0

I have implemented a bridge between an external system and Magento, retrieving product details for the external system and save it after processing to Magento.

My problem is that when there are more than some amount of records (not many, ~100) coming from the external system my job hangs in the 'in process' status.

I am suspecting the database connection, but I have tried multiple ways to make it work such as to inject ResourceConnection on each class constructor I need it, or to create a connection in the beginning of cron job and distribute it (as param) to any place needed, but I had no success.

Also, I am using the ProductInterface in order to identify the product in Magento and I use the set methods to change values and the save method in the end.

Can anyone help me please? Thank you in advance

PS: I am using magento 2.3.5

1
  • Try how Magento product import does.
    – Sohel Rana
    Sep 2, 2023 at 14:35

1 Answer 1

0
  1. If you have external system API, then use CURL in Magento to create or update product. And execute it by custom Cron jobs.

  2. Create custom REST API in Magento for create and update the products. and call it in external system.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.