![]() PHP is designed to be stateless, there are no shared resources across different Parameter as base for the namespace, which will lead to different namespaces Otherwise, the cache.app pool will use the value of the kernel.project_dir Should set a value for the Ĭonfiguration option in order to use the same cache namespace between deployments. If your deploy strategy involves the creation of new target directories, you The command uses the appĬache internally - so make sure this is configured to use an adapter you like. ![]() It's currently handling and should shut down gracefully. This will signal to each worker that it should finish the message The worker if it receives too many errors with the -failure-limit option ofĮach time you deploy, you'll need to restart all your worker processes so You can try to add reconnect logic, or just quit If a worker dependency like your database server is down, or timeout is reached, ThereĪre also other options like -memory-limit=128M and -time-limit=3600. Messages before exiting (then the process manager will create a new process). Like messenger:consume -limit=10 to tell your worker to only handle 10 So, instead of allowing your worker to run forever, use a flag Some services (like Doctrine's EntityManager) will consume more memory You'll want one or more "workers" running at all times. On production, there are a few important things to think about: Use a Process Manager like Supervisor or systemd to keep your worker(s) running
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |