wyntarvox (
wyntarvox) wrote in
dw_dev_training2009-08-21 10:54 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Workers on a Dreamhack
I've been having considerable trouble getting my workers... working on my Dreamhack.
denise,
yvi and
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
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.
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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]](https://www.dreamwidth.org/img/silk/identity/user.png)
no subject
also, your file should look something like this(ish)
no subject
I hadn't, thank you! I just did try it, and there are apparently no jobs found (I triggered an event while it was running). So I'm assuming that means the events aren't being sent to TheSchwartz queue in the first place?
My workers.conf file does look like that, I just copied out the block of workers.
no subject
no subject
Thanks very much!