import os
import sys
from celery.schedules import crontab

class Config:
    JSONIFY_PRETTYPRINT_REGULAR = True

class Celery:
    BROKER_URL = os.getenv('CELERY_BROKER_URL','redis://redis:6379/0')
    CELERY_TIMEZONE='America/Santiago'
    CELERY_ENABLE_UTC=True
    CELERYBEAT_SCHEDULE = {
        'periodic_task-every-minute': {
            'task': 'app.task.periodic',
            'schedule': crontab(minute='*')
            # 'schedule': crontab(minute=15, hour='15')
        }
    }




import os
import sys
from celery.schedules import crontab

class Config:
    JSONIFY_PRETTYPRINT_REGULAR = True

class Celery:
    BROKER_URL = os.getenv('CELERY_BROKER_URL','redis://redis:6379/0')
    CELERY_TIMEZONE='America/Santiago'
    CELERY_ENABLE_UTC=True
    CELERYBEAT_SCHEDULE = {
        'periodic_task-every-minute': {
            'task': 'app.task.periodic',
            'schedule': crontab(minute='*')
            # 'schedule': crontab(minute=15, hour='15')
        }
    }




# 'schedule': crontab(minute=15, hour='15')