Skip to content

How to run asynchronous tasks? #3723

Discussion options

You must be logged in to vote

There are several possibilities, depending on the amount of data to be synchronized.

  • you can sync them in real time but after response sent to the client (#1592), perform sync from the __destruct of your model
  • you can create a waiting list (a simple table with a list of customer_id/order_id) and a cron to perform sync (here it's easy to restart sync)

I used both methods for different purposes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hirale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants