On Monday, December 8, 2014 at 3:47 PM, Ω Alisson wrote:
I'm running a Node app that fetches Redis data into another database. It´s using the cluster module, everything works fine but I need to ensure that workers will finish properly their jobs(they use BRPOP then allocate into a object then insert in batches cleaning the objects), how do I do this?
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CACZE8Y5XARF0mzr7H30jVqoS33Kf7KzR_yFE4FOuh%2Bybj%3DJuSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/3845DF3360164E9992FAD400F3E7B9D5%40strongloop.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CACZE8Y4o77eNEJHfsvkDGYMp1b7O_Vidz50s-nDSwDfBx%3DL5Lg%40mail.gmail.com.
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CACmrRmSaa5hb6zSwSP6Z8YX7PdifXxnE-%2BsZdbosVDmgXOegrw%40mail.gmail.com.
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CACmrRmRosp%3D-VxMckCMvhKNiOWDBWiyUJ%3DrRzCZjwcDijmyTpw%40mail.gmail.com.
Well I did it and the CPU is running at 0.2%On Tue, Dec 16, 2014 at 11:22 PM, Sam Roberts <s...@strongloop.com> wrote:On Wed, Dec 10, 2014 at 8:15 PM, Ω Alisson <thelin...@gmail.com> wrote:
> Interesting Sam, but what if I set a flag that is checked every
> process.nextTick
You will eat 100% CPU, rather than waiting on event from the master
saying that its time to go away, and being able to do the cleanup you
want:
> suspends redis updates, so what's left is finishing
> iterating over in-memory items?
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAGjmZGx%2BbWyTuswZ4Rg-Z76wDRQTqakpwDEVoV%2BT_s4bkXLYzQ%40mail.gmail.com.