We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a7d480 commit 73bf541Copy full SHA for 73bf541
1 file changed
PostmonTaskScheduler.py
@@ -14,16 +14,18 @@
14
CELERY_RESULT_SERIALIZER='json',
15
CELERY_TIMEZONE='America/Sao_Paulo',
16
CELERY_ENABLE_UTC=True,
17
- CELERYBEAT_SCHEDULE = {
+ CELERYBEAT_SCHEDULE={
18
'track_ibge_daily': {
19
'task': 'PostmonTaskScheduler.track_ibge',
20
- 'schedule': timedelta(days=1) # útil para testes: timedelta(minutes=1)
+ 'schedule': timedelta(days=1) # útil para
21
+ # testes: timedelta(minutes=1)
22
}
23
24
)
25
26
logger = get_task_logger(__name__)
27
28
+
29
@app.task
30
def track_ibge():
31
logger.info('Iniciando tracking do IBGE...')
0 commit comments