Projet

Général

Profil

0001-management-add-possibility-to-limit-cron-to-a-single.patch

Frédéric Péters, 15 novembre 2018 11:46

Télécharger (1007 octets)

Voir les différences:

Subject: [PATCH] management: add possibility to limit cron to a single
 application (#28040)

 combo/data/management/commands/cron.py | 2 ++
 1 file changed, 2 insertions(+)
combo/data/management/commands/cron.py
33 33
        for appconfig in apps.get_app_configs():
34 34
            if not hasattr(appconfig, 'hourly'):
35 35
                continue
36
            if options.get('application') and appconfig.name != options.get('application'):
37
                continue
36 38
            if hasattr(appconfig, 'is_enabled') and not appconfig.is_enabled():
37 39
                continue
38 40
            try:
39
-