DtcQueueBundle | 5 Queue Bundle ( for background jobs | Cron Utils library
kandi X-RAY | DtcQueueBundle Summary
kandi X-RAY | DtcQueueBundle Summary
This bundle provides a way to easily create and manage queued background jobs. Job-specific Features: - Auto-retry on failure, exception * If a job exits with a failure code, it can auto-retry * Same for Exception if desired - Priority * Jobs can have levels of priority so that higher priority jobs can get processed first even if they were added * to the queue later. - Future Jobs (ODM / ORM / Redis) * Jobs can be scheduled to run at some time in the future - Batch * Jobs can be "batched" so that only one job runs, even if multiple are queued of the same type - Expires * Jobs can have an "expires" time so that they wont run after a certain point * (useful if the queue gets backed up and a job is worthless after a certain time) - Stalls (ODM / ORM) * Jobs that crash the interpreter, or get terminated for some other reason can be detected * These can be re-queued to run in the future.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Set time at a time
- Add the retry configuration .
- Get job timings
- Add RabbitMQ configuration .
- Configures the console command .
- Add connection parameters
- Get the status of a document
- Get stream function .
- Loads the queue configuration .
- Prune expired jobs .
DtcQueueBundle Key Features
DtcQueueBundle Examples and Code Snippets
Community Discussions
Trending Discussions on DtcQueueBundle
QUESTION
I have to set up a job manager for the console command that I have created. The console command needs from 20 - 30 minutes to finish. This console command is writing into the database multiple queries and let's assume that it can't be shrink-ed to a less time.
I have all created in Symfony2.8, but I am a really newbie using it. So I enter link description here
All I need is to run this command like a background task. Without touching the frontend of the application. Could anyone help me out ?
Ah, all right. This needs to be done regularly, but on a user/clients request.
...ANSWER
Answered 2018-May-21 at 13:19It very much depends on what it needs to do.
Just run once it once-only? Login onto the server, use tmux or screen to keep something running, even if you disconnect, and then run the command (bin/console name-of-command
).
Running regularly - put an entry into crontab for the user that needs to run it.
Without knowing what the script needs to do, and how often it would be done (if any), it's hard to say what the nexts steps could be.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DtcQueueBundle
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page