wyntarvox: (Default)
wyntarvox ([personal profile] wyntarvox) wrote in [site community profile] dw_dev_training2009-08-21 10:54 am

Workers on a Dreamhack

I've been having considerable trouble getting my workers... working on my Dreamhack. [staff profile] denise, [personal profile] yvi and [personal profile] afuna have all been very patient in IRC giving me tips and pointers, but I still can't seem to get things happening.

At first I was just trying to test ESN for circle changes, but I'm pretty sure I've discovered that I'm having issues with all of the workers, not just ESN.

I've set up TheSchwartz as described here (except that the entire block is now in etc/config-private.pl in keeping with those changes). I noticed that before I did that, I was having database connection errors when I tried to post an entry on my Dreamhack. After I set up TheSchwartz, those went away, so I'm assuming at least that I have the database configuration block set up correctly.

I then start bin/worker-manager --debug and it fires up some workers and gets in to the spawn/reap loop I understand it's supposed to. However, triggering ESN events with these running has no effect. Nothing appears in the on-site inbox and no emails arrive. I also noticed that if I have $MAIL_TO_THESCHWARTZ set to true, no emails (even non-ESN ones) arrive, but when I set it to false, they arrive almost instantly.

I edited my etc/workers.conf to include what I thought were all of the ESN-related workers. It now has the following workers:

esn-fired-event: 1
esn-fired-event-mass: 1
esn-process-sub: 1
esn-process-sub-mass: 1
send-email: 1
esn-cluster-subs: 1
esn-cluster-subs-mass: 1
lazy-cleanup: 1
process-esn: 1
process-esn-mass: 1
esn-filter-subs: 1
esn-filter-subs-mass: 1

Is there another step(s)/worker(s) I've missed? Are there other settings I should check? Is there a guide for this that I've overlooked? Should I put down the Dreamhack and step away slowly?

Edit: Thanks to [personal profile] exor674, I finally have everything working nicely! For those interested but don't want the tl;dr version: I hadn't set up my TheSchwartz database properly afterall.
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2009-08-21 02:23 am (UTC)(link)
have you tried running say bin/worker/esn-fired-event --verbose on its own?

also, your file should look something like this(ish)
all:
    payment: 1
    paidstatus: 1
    esn-fired-event: 1
    esn-process-sub: 1
    send-email: 1
    friendchange: 1
    lazy-cleanup: 1
    support-notify: 1
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2009-08-21 02:57 am (UTC)(link)
Are you sure your schwartz DB info is set up correctly? as the workers don't tell you if that is wrong and still pretend to work.