Auto status change to "Under Review"
Show More
@@ -84,6 +84,8 b' def test_retry_exception_task():' | |||
|
84 | 84 | log.warning('test retry celery log', extra={'location': 'celery'}) |
|
85 | 85 | raise Exception('Celery exception test') |
|
86 | 86 | except Exception as exc: |
|
87 | if celery.conf["CELERY_EAGER_PROPAGATES_EXCEPTIONS"]: | |
|
88 | raise | |
|
87 | 89 | test_retry_exception_task.retry(exc=exc) |
|
88 | 90 | |
|
89 | 91 | |
@@ -216,6 +218,8 b' def add_reports(resource_id, request_params, dataset, **kwargs):' | |||
|
216 | 218 | return True |
|
217 | 219 | except Exception as exc: |
|
218 | 220 | print_traceback(log) |
|
221 | if celery.conf["CELERY_EAGER_PROPAGATES_EXCEPTIONS"]: | |
|
222 | raise | |
|
219 | 223 | add_reports.retry(exc=exc) |
|
220 | 224 | |
|
221 | 225 | |
@@ -337,6 +341,8 b' def add_logs(resource_id, request_params, dataset, **kwargs):' | |||
|
337 | 341 | return True |
|
338 | 342 | except Exception as exc: |
|
339 | 343 | print_traceback(log) |
|
344 | if celery.conf["CELERY_EAGER_PROPAGATES_EXCEPTIONS"]: | |
|
345 | raise | |
|
340 | 346 | add_logs.retry(exc=exc) |
|
341 | 347 | |
|
342 | 348 | |
@@ -399,6 +405,8 b' def add_metrics(resource_id, request_params, dataset, proto_version):' | |||
|
399 | 405 | return True |
|
400 | 406 | except Exception as exc: |
|
401 | 407 | print_traceback(log) |
|
408 | if celery.conf["CELERY_EAGER_PROPAGATES_EXCEPTIONS"]: | |
|
409 | raise | |
|
402 | 410 | add_metrics.retry(exc=exc) |
|
403 | 411 | |
|
404 | 412 | |
@@ -538,6 +546,8 b' def update_tag_counter(tag_name, tag_value, count):' | |||
|
538 | 546 | return True |
|
539 | 547 | except Exception as exc: |
|
540 | 548 | print_traceback(log) |
|
549 | if celery.conf["CELERY_EAGER_PROPAGATES_EXCEPTIONS"]: | |
|
550 | raise | |
|
541 | 551 | update_tag_counter.retry(exc=exc) |
|
542 | 552 | |
|
543 | 553 |
General Comments 3
You need to be logged in to leave comments.
Login now