Log message #4221968

# At Username Text
# Jan 10th 2020, 07:35 francisdoydora but the viewVars I set aren't working
# Jan 10th 2020, 07:34 francisdoydora okay got everything to work now
# Jan 10th 2020, 07:31 challgren What's your queue.maxworkers config value?
# Jan 10th 2020, 07:18 francisdoydora same :(
# Jan 10th 2020, 07:17 challgren Try `bin/cake queue end all`
# Jan 10th 2020, 07:15 challgren Ok then yeah manually clear the queue_processes table
# Jan 10th 2020, 07:14 francisdoydora so it says no processes found but when I enter runworker it says too many workers running T_T
# Jan 10th 2020, 07:14 francisdoydora ```noydoy@a7d0feccc362:/var/www/html/juniorhigh$ bin/cake queue kill all No processes found noydoy@a7d0feccc362:/var/www/html/juniorhigh$ bin/cake queue runworker Entity save failure. Found the following errors (server.validateCount: "Too many workers running. Check your `Queue.maxworkers` config."). noydoy@a7d0feccc362:/var/www/html/juniorhigh$ ```
# Jan 10th 2020, 07:10 challgren i think its `bin/cake queue kill all`
# Jan 10th 2020, 07:10 challgren queue_processes
# Jan 10th 2020, 07:10 francisdoydora thank you so much, I'll look for the command :)
# Jan 10th 2020, 07:10 challgren I think its queue_workers
# Jan 10th 2020, 07:10 challgren I think theres a command but I cant recall
# Jan 10th 2020, 07:09 challgren Look in your db and clear the stale workers
# Jan 10th 2020, 07:09 francisdoydora okay fixed the issue, now this appears ```Entity save failure. Found the following errors (server.validateCount: "Too many workers running. Check your `Queue.maxworkers` config.").```
# Jan 10th 2020, 07:07 challgren That will be your issue
# Jan 10th 2020, 07:07 francisdoydora no not the same user
# Jan 10th 2020, 07:05 challgren are you running the command as the same user as apache?
# Jan 10th 2020, 07:05 challgren Your permissions are munged
# Jan 10th 2020, 07:05 francisdoydora this error appears @challgren :(
# Jan 10th 2020, 07:05 francisdoydora ```Warning Error: SplFileInfo::openFile(/var/www/html/juniorhigh/tmp/cache/persistent/myapp_cake_core_translations_cake_en__u_s): failed to open stream: Permission denied in [/var/www/html/juniorhigh/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 405]```
# Jan 10th 2020, 07:04 challgren That command is what needs to be executed/running to process the queue
# Jan 10th 2020, 07:04 francisdoydora @challgren I didn't :( will try it out now. thanks! :)
# Jan 10th 2020, 07:03 challgren @francisdoydora did you run `bin/cake queue runworker`
# Jan 10th 2020, 07:01 francisdoydora Hi @dereuromark, I was wondering if you could help me out in implementing queue. I've already followed the instructions here https://github.com/dereuromark/cakephp-queue/tree/master/docs#installation and I've setup the app.php file like this https://github.com/dereuromark/cakephp-queue/tree/master/docs#installation. But when I ran the send email method, it didn't send out an email.
# Jan 10th 2020, 00:09 dereuromark I released RC: https://github.com/dereuromark/cakephp-ide-helper/releases/tag/1.0.0-rc If someone wants to test it on Cake 4 apps and give some feedback, would be awesome.
# Jan 9th 2020, 20:18 luizcmarin perfect. thank you :+1:
# Jan 9th 2020, 20:10 luizcmarin ops 3.8
# Jan 9th 2020, 20:10 luizcmarin https://api.cakephp.org/3.8/class-Cake.Validation.Validator.html#_greaterThan ??
# Jan 9th 2020, 20:08 luizcmarin looking in the manual
# Jan 9th 2020, 20:07 luizcmarin "custom rule" not is "validation"?
# Jan 9th 2020, 20:07 dereuromark if it works for decimals
# Jan 9th 2020, 20:03 ricksaccous there's greaterThan
# Jan 9th 2020, 20:02 dereuromark a custom rule with > 0 in there
# Jan 9th 2020, 19:59 slackebot cake?
# Jan 9th 2020, 19:59 luizcmarin The manual says "You can also use notEmpty () to mark a field invalid if any 'empty' value is used. In general, it is recommended that you do not use notEmpty () and use more specific validators instead: notEmptyString () , notEmptyArray (), notEmptyFile (), notEmptyDate (), notEmptyTime (), notEmptyDateTime (). " I have a decimal field (12,2), not null, that accepts zero. I do not want it. Must be greater than zero. How to proceed in
# Jan 9th 2020, 19:32 dereuromark IMO helpers can do these things in specific cases, to avoid the overhead of component or cell involvement.
# Jan 9th 2020, 19:32 dereuromark wrapping it in a helper could make this at least isolated and testable
# Jan 9th 2020, 19:31 kailas it’s literally just one table function call.
# Jan 9th 2020, 19:30 kailas yeah, that’s what i was thinking
# Jan 9th 2020, 19:26 dereuromark Personally I find cells also a bit overhead if it is just a small data fetching (ready only).