uWSGI mules not apscheduler

Sooo… running my MikroAWS app with Supervisord behind uWSGI wasn’t correctly running my apscheduler jobs.

… my cache wasn’t updating 🙁 oh noes! …

uWSGI has it’s own background worker functionality ‘mules’

Add to mikroaws.ini (mod # to be your # of workers):

mules = 1

Rem out references to apscheduler…

And use uWSGI mules instead:

from uwsgidecorators import timer
@timer(5, target=’mule’)
def setCache(signum):
print “w00t!”

Leave a Reply

Your email address will not be published. Required fields are marked *