Skip to content

Is this the expected behavior when running in worker mode? #1250

Answered by dunglas
twisted1919 asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed the service is the problem. I don't why you need a service here instead of attaching the custom' headers directly to the current request.

The ResetInterface is not FrankenPHP-specific (it is also useful for Messenger, Swoole etc) but indeed we should add some docs for it in this context (here is the existing docs: https://symfony.com/doc/current/messenger.html#stateless-worker).
While convenient, it's almost always possible to design stateless services instead (which is a best practice anyway).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@twisted1919
Comment options

@dunglas
Comment options

Answer selected by twisted1919
@twisted1919
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants