Entry tags:
Worker configuration!
etc/workers.conf now contains a list of all the workers, grouped by functionality, and some basic documentation for the most commonly used ones.
Should make it easier the next time anyone has to test crossposting/importing/notifications, etc.
Feel free to adjust further as required, or if you discover that doing something needs a worker that isn't listed!
Should make it easier the next time anyone has to test crossposting/importing/notifications, etc.
Feel free to adjust further as required, or if you discover that doing something needs a worker that isn't listed!
no subject
no subject
no subject
I would look at things like schedule-synsuck and subscribe-hubbub that grab a chunk of rows from some table, iterate over them updating something, and then sleep. If you have more than one running for some reason, they might be working on the same chunk of rows and duplicating tasks.
Some workers of this type (e.g., birthday-notify and expunge-users) use DDLockClient via LJ::locker->trylock() to avoid stepping on each other if running multiple instances. This requires running ddlockd and setting @LJ::LOCK_SERVERS if the instances are on different servers. It might be pointless anyway to run more than one because of the timing of their sleep/work cycles.
no subject
Hmm, I've only put the gearman/theschwartz workers in here since that's what workers.conf is for. I think that the other workers will have to be in a separate README or up on the wiki somewhere, in that case.
no subject
But the ones marked 'Manual' are neither gm nor schwartz and still run from worker-manager.
no subject
Hmm so I'm guessing all the manual workers always need just the one, yeah?
no subject
no subject
no subject
no subject
no subject
no subject
I'm assuming it's something like: you add to cart, then the time mysteriously disappears / isn't processed?
Can you check (by printing in your apache logs), that the shop variable is indeed set properly? As a just in case1
no subject
no subject
no subject
$LJHOME/bin/ljdb < /usr/share/doc/libtheschwartz-perl/schema.sql
then restart apache and workers. It wouldn't work otherwise.