Jacopo Franzoi
10/27/2021, 8:41 PM@Async
feature. For sure I was missing something 😂Matteo Mirk
10/27/2021, 10:10 PMJacopo Franzoi
11/02/2021, 9:27 AMDoubleReceive
feature and warming up the applicationCall
(so that body content was then available to later tasks execution - eg: receiveParameters()
or receive<T>()
for general parsing). And that was not deterministic, but only randomly happening (even in production-like envs), while never happening in dev env. That’s why we were guessing it’s a timing corner case. And we also weren’t able to unit test the background execution, since withTestApplication
was always waiting for coroutines to be completed. Details available here.
Again, thanks a lot for any feedback on how to improve it (mainly, remove the additional DoubleReceive
feature, if possible) and test it!