You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workers should be defined from the bundle config, using yml, xml and php. We could define them using local workers, with same info as in annotations, and we could define foreign workers, with just the queue name.
This feature is an extension of #107 and requires:
Bundle config definition and validation
Modifications ( and maybe some kind of refactoring ) in cache build.
Documentation
Tests
The text was updated successfully, but these errors were encountered:
I would be nicer at least to use a compiler pass so we can tag the services as workers opposed to referencing the service names on the annotations.
tags:
- { name: gearman.worker }
However unless the remaining configuration stays in the annotations, it would still be better in the config. It should be easy enough to use the same method as controllers where annotations or resource files can define the full configuration. Then you need only create the service with its class.
tagging wil introduce some kind of registry, which means you will be able to add workers in other ways to.
Ex:
We are working with a commandbus. A middleware sends the command to gearman. But we want to be in control which worker can handle which commands/jobs
Workers should be defined from the bundle config, using
yml
,xml
andphp
. We could define them using local workers, with same info as in annotations, and we could define foreign workers, with just the queue name.This feature is an extension of #107 and requires:
The text was updated successfully, but these errors were encountered: