Hello

On Fri, 2018-10-26 at 11:27 +0000, Łukasz Kokoszka via Weblate wrote:
> We have a self-hosted Weblate 3.2-1 instance using Docker images (any
> newer versions are highly-unstable). 

What kind of unstability do you see? I'm using 3.2.2-2 on several
servers and it seems to work just fine.

> We have a problem with configuring weblate to fit our needs, which
> is: how to setup Celery to commit all pending changes every 2
> minutes? For us the min. possible value of 1h delay in committing is
> unacceptable. In older Weblates we were setting LAZY_COMMITS to False
> simply.

I think following configuration should do that (untested):

CELERY_BEAT_SCHEDULE = {
    'commit': {
        'task': 'weblate.trans.tasks.commit_pending',
        'kwargs' {'hours': 0},
        'schedule': 120,
     }
}

You can place it into configuration override:


https://docs.weblate.org/en/latest/admin/deployments.html#further-configuration-customization

-- 
        Michal Čihař | https://cihar.com/ | https://weblate.org/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Weblate mailing list
[email protected]
https://lists.cihar.com/cgi-bin/mailman/listinfo/weblate

Reply via email to