def run(self, obj, field_name):
"""Just run `build` on FieldFile, can't pass it directly to Celery."""
- return self.build(getattr(obj, field_name))
+ ret = self.build(getattr(obj, field_name))
+ obj.flush_includes()
+ return ret
def build(self, fieldfile):
book = fieldfile.instance
env.user = 'lektury'
env.app_path = '/srv/wolnelektury.pl'
env.services = [
- Supervisord('wolnelektury.gunicorn'),
- Supervisord('celery.wolnelektury:'),
+ Supervisord('wolnelektury'),
+ Supervisord('wolnelektury.celery'),
]