Log message #4184237

# At Username Text
# Apr 23rd 2019, 20:49 ricksaccous i think
# Apr 23rd 2019, 20:49 ricksaccous and make the namespace Plugin\Listeners;
# Apr 23rd 2019, 20:49 ricksaccous usually i make a Listeners folder
# Apr 23rd 2019, 20:48 ricksaccous wherever you want
# Apr 23rd 2019, 20:47 hollistergraham123 Hey, where in the folder structure should I put event listeners?
# Apr 23rd 2019, 18:51 itmpls is there a way to dynamically remove validation from an entity's associated model created with newEntity? eg `$userEntity = $this->Staff->newEntity([], ['associated' => 'Users' => ['validate' => false] ]);` I tried $this->Staff->Users->validator()->remove('email'); but in a form for that element, its still required
# Apr 23rd 2019, 18:51 beakman And actually, I kinda derped that answer inside that GitHub issue now that I re-read it, what I really meant to say is what I just wrote here. Woof.
# Apr 23rd 2019, 18:38 beakman Let me know if I can help. :slightly_smiling_face:
# Apr 23rd 2019, 18:30 beakman One thing I left out was, you could always store a hashed value alongside the encrypted value, but again, would only yield you strict equality matches.
# Apr 23rd 2019, 18:29 beakman Catching up on the discussion, someone else asked about encryption searching too, in this plugin too actually: https://github.com/bcrowe/cakephp-encrypted-type/issues/1
# Apr 23rd 2019, 18:17 beakman :O
# Apr 23rd 2019, 17:56 challgren #226?
# Apr 23rd 2019, 17:55 dereuromark ;) cool. check out my plan on cost per type
# Apr 23rd 2019, 17:52 challgren @dereuromark what I did for CPU intense jobs was group them together and then run that group worker on a separate machine and/or set higher thresholds. I had one queuetask that would download a 98mb csv file and parse it into cake, cake 2 it took over 2 hours to complete, cake 3 it would take 5 minutes (my guess is due to entity patching and not blindly updating the database with every save operation
# Apr 23rd 2019, 17:49 challgren @neon1024 I do have a plugin for you https://github.com/bcrowe/cakephp-encrypted-type
# Apr 23rd 2019, 17:25 picasso im curious what the process is for a new release of phinx to be created? this particular PR is something i need (double precision support for postgres) and has been in cakephp:master for a couple months, but the latest phinx release (0.10.6) is much older than that. https://github.com/cakephp/phinx/pull/1493
# Apr 23rd 2019, 15:58 josbeir yeah ur right
# Apr 23rd 2019, 15:57 dereuromark in the end that would also use server resources, wouldnt it? and as such would also need simular knowledge about the task scoring in terms of capacity usage.
# Apr 23rd 2019, 15:55 josbeir i would look into amqp (rabbitmq, ..) if resource stuff is getting in the way ?
# Apr 23rd 2019, 15:53 josbeir sychronous
# Apr 23rd 2019, 15:53 josbeir so each cron is a worker that runs tasks
# Apr 23rd 2019, 15:52 josbeir hmm
# Apr 23rd 2019, 15:51 dereuromark cronjob based (x minutes until max limit reached per server)
# Apr 23rd 2019, 15:51 josbeir never use the plugin
# Apr 23rd 2019, 15:51 josbeir (tasks)
# Apr 23rd 2019, 15:51 josbeir how does cakephp-queue spawn processes ?
# Apr 23rd 2019, 15:50 josbeir rightr
# Apr 23rd 2019, 15:50 dereuromark not possible with exec() in php, very hard to find the real values
# Apr 23rd 2019, 15:49 josbeir and why not implement resource monitoring of the spawned process ?
# Apr 23rd 2019, 15:49 steinkel maybe using `nice` over the worker shells will allow the OS handle that for you
# Apr 23rd 2019, 15:49 dereuromark for composer update, yeah. very expensive..
# Apr 23rd 2019, 15:49 dereuromark you fine tune it over time, for now we need a solution to not overload the server(s) :slightly_smiling_face:
# Apr 23rd 2019, 15:49 steinkel the problem is CPU consumption making other processes slow in that server?
# Apr 23rd 2019, 15:48 phantomwatson Aside from it maybe being difficult to put a number on how "big" a process is, that's a neat solution. If resource use can be measured, then maybe that could be added to logs so people could tweak their "score" values to be more accurate.
# Apr 23rd 2019, 15:48 dereuromark this can be even auto-adjustable based on the statistics we already have of finished tasks and their trend. but as a base line a value from 0...100 should already make it clear based on the amount of servers you provide.
# Apr 23rd 2019, 15:47 josbeir jobs can get more intensive in time
# Apr 23rd 2019, 15:47 josbeir its too abstract
# Apr 23rd 2019, 15:47 josbeir @dereuromark i'm not sure a static 'cost' number will be sufficient
# Apr 23rd 2019, 15:46 dereuromark jep, and the fetching then allows only to get the jobs that still "fit" the current estimated work load
# Apr 23rd 2019, 15:46 phantomwatson @dereuromark, like queued jobs would have a value for how processor-intensive they are, and some maximum simultaneous score threshold is set?
# Apr 23rd 2019, 15:46 dereuromark https://github.com/dereuromark/cakephp-queue/issues/226 is my current idea.