Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The PowerSync connector for Magento and Salesforce platforms enables merchants to synchronize data between both platforms based on a Schedule and in Real-Time.

...

Code Block
### Process bulk requests from Salesforce
*/5 * * * * php -f /var/www/html/bin/magento tnw_salesforce:cron:run incoming -a >> /var/www/html/var/log/sforce-incoming.cron.log

## temporary data cleanup
* * * * * php -f /var/www/html/bin/magento tnw_salesforce:clean:queue >> /var/www/html/var/log/sforce-clean-queue.cron.log
*/5 * * * * php -f /var/www/html/bin/magento tnw_salesforce:clean_system_logs >> /var/www/html/var/log/sforce-clean_system_logs.cron.log
Note

IMPORTANT: You might need to also register the Magento queue listeners manually.
Follow the manage message queues documentation and add the following listeners to your /app/etc/env.php file.

  • tnwSalesforceSyncRealtimeAmqp

  • tnwSalesforceSyncRealtimeDb

  • tnwSalesforcePrequeueProcessDb

  • tnwSalesforceQueueProcessBackgroundDb

  • tnwSalesforceQueueProcessNormalDb

  • tnwSalesforcePrequeueProcessAmqp

  • tnwSalesforceQueueProcessBackgroundAmqp

  • tnwSalesforceQueueProcessNormalAmqp

  • tnwSalesforceQueueProcessCheckNormalDb

  • tnwSalesforceQueueProcessCheckNormalAmqp

  • tnwSalesforceQueueProcessCheckBackgroundDb

  • tnwSalesforceQueueProcessCheckBackgroundAmqp

  • tnwSalesforceSyncQuoteDb

  • tnwSalesforceSyncQuoteAmqp

  • tnwCountryStateUpdateConsumerDb

  • tnwCountryStateUpdateConsumerAmqp

Note

We recommend set the consumers_wait_for_messages to 1 in the app/etc/env.php

Example:

'queue' => [

'consumers_wait_for_messages' => 1

],

  • the “Ampq” suffix added to the consumers for the RabbitMQ Message Queue

  • the “Db“ suffix has consumers for the Standard(MysqlMQ) Message Queue

Configuring the Magento 2 extension

...