webtechnick / cakephp-queue-plugin Goto Github PK
View Code? Open in Web Editor NEWProcess Queuing plugin for CakePHP
Process Queuing plugin for CakePHP
Hi,
I can create job (add to queue) , but not process it :
C:\wamp\www\ruseller\app>cake Queue.queue process
App : app
Processing Queue.
'uptime' is not recognized as an internal or external command,
operable program or batch file.
Error: Unable to retrieve load avearge from uptime.
#0 C:\wamp\www\ruseller\app\Plugin\Queue\Model\QueueTask.php(358): QueueUtil::cu
rrentCpu()
#1 C:\wamp\www\ruseller\app\Plugin\Queue\Model\QueueTask.php(432): QueueTask->ne
xt(1, true, true)
#2 C:\wamp\www\ruseller\app\Plugin\Queue\Model\QueueTask.php(479): QueueTask->ru
nList()
#3 C:\wamp\www\ruseller\app\Plugin\Queue\Lib\Queue.php(110): QueueTask->process(
)
#4 C:\wamp\www\ruseller\app\Plugin\Queue\Console\Command\QueueShell.php(219): Qu
eue::process()
#5 C:\wamp\www\cake\lib\Cake\Console\Shell.php(437): QueueShell->process()
#6 C:\wamp\www\cake\lib\Cake\Console\ShellDispatcher.php(209): Shell->runCommand
('process', Array)
#7 C:\wamp\www\cake\lib\Cake\Console\ShellDispatcher.php(66): ShellDispatcher->d
ispatch()
#8 C:\wamp\www\cake\lib\Cake\Console\cake.php(54): ShellDispatcher::run(Array)
#9 {main}
May be I'm wrong.
BTW, Good job.
I'm testing your plugin. When I have some records in queue_tasks table ( about 5000 rows),
I manually run command "cake Queue.queue process" ('limit' => 100) it works, first time , second time but in one moment without any errors I see all my tasks staying in queue, and status changes only, and if I run command "cake Queue.queue run ID " it's push process.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.