Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Async Plugin Execution Order

If I modify the same record three times, and I have an async plugin listening to the Update message, will the updates be ordered?

I'd expect the updates to be ordered, even if executed asynchronously (properly queued for later execution). If this is the case, I hope the same holds for create and delete messates.

Thanks in advance.

like image 236
Raine Avatar asked Sep 25 '26 22:09

Raine


1 Answers

With asynchronous plugins the order of execution is not guaranteed, if you want to make the plugins be executed respecting the queue you need to use the DependencyToken attribute.

You can find an article here:

Dependency and Execution Order in Asynchronous Operations

like image 166
Guido Preite Avatar answered Sep 27 '26 23:09

Guido Preite