@@ -202,20 +202,13 @@ Example configuration
202
202
AMQP backend settings
203
203
---------------------
204
204
205
- .. setting :: CELERY_AMQP_TASK_RESULT_EXPIRES
206
-
207
- CELERY_AMQP_TASK_RESULT_EXPIRES
208
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
209
- .. deprecated :: 2.5
210
-
211
- The time in seconds of which the task result queues should expire.
212
-
213
- This setting is deprecated, and will be removed in version 3.0.
214
- Please use :setting: `CELERY_TASK_RESULT_EXPIRES ` instead.
215
-
216
205
.. note ::
217
206
218
- AMQP result expiration requires RabbitMQ versions 2.1.0 and higher.
207
+ The AMQP backend requires RabbitMQ 1.1.0 or higher to automatically
208
+ expire results. If you are running an older version of RabbitmQ
209
+ you should disable result expiration like this:
210
+
211
+ CELERY_TASK_RESULT_EXPIRES = None
219
212
220
213
.. setting :: CELERY_RESULT_EXCHANGE
221
214
@@ -728,7 +721,6 @@ A built-in periodic task will delete the results after this time
728
721
When using the database or MongoDB backends, `celerybeat ` must be
729
722
running for the results to be expired.
730
723
731
-
732
724
.. setting :: CELERY_MAX_CACHED_RESULTS
733
725
734
726
CELERY_MAX_CACHED_RESULTS
@@ -959,18 +951,6 @@ The default value for the `Task.send_error_emails` attribute, which if
959
951
set to :const: `True ` means errors occurring during task execution will be
960
952
sent to :setting: `ADMINS ` by email.
961
953
962
- .. setting :: CELERY_TASK_ERROR_WHITELIST
963
-
964
- CELERY_TASK_ERROR_WHITELIST
965
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
966
-
967
- .. deprecated :: 2.5
968
-
969
- A white list of exceptions to send error emails for.
970
-
971
- This option is pending deprecation and is scheduled for removal
972
- in version 3.0.
973
-
974
954
.. setting :: ADMINS
975
955
976
956
ADMINS
@@ -1155,39 +1135,6 @@ this behavior.
1155
1135
Logging can also be customized by connecting to the
1156
1136
:signal: `celery.signals.setup_logging ` signal.
1157
1137
1158
- .. setting :: CELERYD_LOG_FILE
1159
-
1160
- CELERYD_LOG_FILE
1161
- ~~~~~~~~~~~~~~~~
1162
-
1163
- .. deprecated :: 2.4
1164
-
1165
- This option is deprecated and is scheduled for removal in version 3.0.
1166
- Please use the :option: `--logfile ` argument instead.
1167
-
1168
- The default file name the worker daemon logs messages to. Can be overridden
1169
- using the :option: `--logfile ` option to :mod: `~celery.bin.celeryd `.
1170
-
1171
- The default is :const: `None ` (`stderr `)
1172
-
1173
- .. setting :: CELERYD_LOG_LEVEL
1174
-
1175
- CELERYD_LOG_LEVEL
1176
- ~~~~~~~~~~~~~~~~~
1177
-
1178
- .. deprecated :: 2.4
1179
-
1180
- This option is deprecated and is scheduled for removal in version 3.0.
1181
- Please use the :option: `--loglevel ` argument instead.
1182
-
1183
- Worker log level, can be one of :const: `DEBUG `, :const: `INFO `, :const: `WARNING `,
1184
- :const: `ERROR ` or :const: `CRITICAL `.
1185
-
1186
- Can also be set via the :option: `--loglevel ` argument to
1187
- :mod: `~celery.bin.celeryd `.
1188
-
1189
- See the :mod: `logging ` module for more information.
1190
-
1191
1138
.. setting :: CELERYD_LOG_COLOR
1192
1139
1193
1140
CELERYD_LOG_COLOR
@@ -1347,6 +1294,94 @@ CELERYBEAT_MAX_LOOP_INTERVAL
1347
1294
The maximum number of seconds :mod: `~celery.bin.celerybeat ` can sleep
1348
1295
between checking the schedule. Default is 300 seconds (5 minutes).
1349
1296
1297
+
1298
+ .. _conf-celerymon :
1299
+
1300
+ Monitor Server: celerymon
1301
+ -------------------------
1302
+
1303
+
1304
+ .. setting :: CELERYMON_LOG_FORMAT
1305
+
1306
+ CELERYMON_LOG_FORMAT
1307
+ ~~~~~~~~~~~~~~~~~~~~
1308
+
1309
+ The format to use for log messages.
1310
+
1311
+ Default is `[%(asctime)s: %(levelname)s/%(processName)s] %(message)s `
1312
+
1313
+ See the Python :mod: `logging ` module for more information about log
1314
+ formats.
1315
+
1316
+ .. _conf-deprecated :
1317
+
1318
+ Deprecated Settings
1319
+ -------------------
1320
+
1321
+ These settings have been deprecated and should no longer used,
1322
+ as they will be removed in future versions.
1323
+
1324
+ .. setting :: CELERY_AMQP_TASK_RESULT_EXPIRES
1325
+
1326
+ CELERY_AMQP_TASK_RESULT_EXPIRES
1327
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1328
+
1329
+ .. deprecated :: 2.5
1330
+
1331
+ The time in seconds of which the task result queues should expire.
1332
+
1333
+ This setting is deprecated, and will be removed in version 3.0.
1334
+ Please use :setting: `CELERY_TASK_RESULT_EXPIRES ` instead.
1335
+
1336
+ .. note ::
1337
+
1338
+ AMQP result expiration requires RabbitMQ versions 2.1.0 and higher.
1339
+
1340
+ .. setting :: CELERY_TASK_ERROR_WHITELIST
1341
+
1342
+ CELERY_TASK_ERROR_WHITELIST
1343
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1344
+
1345
+ .. deprecated :: 2.5
1346
+
1347
+ A white list of exceptions to send error emails for.
1348
+
1349
+ This option is pending deprecation and is scheduled for removal
1350
+ in version 3.0.
1351
+
1352
+ .. setting :: CELERYD_LOG_FILE
1353
+
1354
+ CELERYD_LOG_FILE
1355
+ ~~~~~~~~~~~~~~~~
1356
+
1357
+ .. deprecated :: 2.4
1358
+
1359
+ This option is deprecated and is scheduled for removal in version 3.0.
1360
+ Please use the :option: `--logfile ` argument instead.
1361
+
1362
+ The default file name the worker daemon logs messages to. Can be overridden
1363
+ using the :option: `--logfile ` option to :mod: `~celery.bin.celeryd `.
1364
+
1365
+ The default is :const: `None ` (`stderr `)
1366
+
1367
+ .. setting :: CELERYD_LOG_LEVEL
1368
+
1369
+ CELERYD_LOG_LEVEL
1370
+ ~~~~~~~~~~~~~~~~~
1371
+
1372
+ .. deprecated :: 2.4
1373
+
1374
+ This option is deprecated and is scheduled for removal in version 3.0.
1375
+ Please use the :option: `--loglevel ` argument instead.
1376
+
1377
+ Worker log level, can be one of :const: `DEBUG `, :const: `INFO `, :const: `WARNING `,
1378
+ :const: `ERROR ` or :const: `CRITICAL `.
1379
+
1380
+ Can also be set via the :option: `--loglevel ` argument to
1381
+ :mod: `~celery.bin.celeryd `.
1382
+
1383
+ See the :mod: `logging ` module for more information.
1384
+
1350
1385
.. setting :: CELERYBEAT_LOG_FILE
1351
1386
1352
1387
CELERYBEAT_LOG_FILE
@@ -1380,11 +1415,6 @@ Can also be set via the :option:`--loglevel` argument to
1380
1415
1381
1416
See the :mod: `logging ` module for more information.
1382
1417
1383
- .. _conf-celerymon :
1384
-
1385
- Monitor Server: celerymon
1386
- -------------------------
1387
-
1388
1418
.. setting :: CELERYMON_LOG_FILE
1389
1419
1390
1420
CELERYMON_LOG_FILE
@@ -1414,15 +1444,3 @@ Logging level. Can be any of :const:`DEBUG`, :const:`INFO`, :const:`WARNING`,
1414
1444
:const: `ERROR `, or :const: `CRITICAL `.
1415
1445
1416
1446
See the :mod: `logging ` module for more information.
1417
-
1418
- .. setting :: CELERYMON_LOG_FORMAT
1419
-
1420
- CELERYMON_LOG_FORMAT
1421
- ~~~~~~~~~~~~~~~~~~~~
1422
-
1423
- The format to use for log messages.
1424
-
1425
- Default is `[%(asctime)s: %(levelname)s/%(processName)s] %(message)s `
1426
-
1427
- See the Python :mod: `logging ` module for more information about log
1428
- formats.
0 commit comments