celery-yaml 2.2.1__tar.gz → 2.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,6 @@
1
+ ## 2.2.2 - Released on 2026-08-28
2
+ * Use alternatives method to crash the process if the yaml is invalid.
3
+
1
4
  ## 2.2.1 - Released on 2026-04-29
2
5
  * Log exception in case yaml file is invalid, because celery eat it.
3
6
  * Update releasing script
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: celery-yaml
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Summary: Easy configuration for celery app using Yaml file
5
5
  Author-Email: Guillaume Gauvrit <guillaume@gauvr.it>
6
6
  License: BSD
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "celery-yaml"
3
- version = "2.2.1"
3
+ version = "2.2.2"
4
4
  description = "Easy configuration for celery app using Yaml file"
5
5
  authors = [
6
6
  { name = "Guillaume Gauvrit", email = "guillaume@gauvr.it" },
@@ -3,6 +3,7 @@
3
3
  import logging
4
4
  import os
5
5
  import sys
6
+ import traceback
6
7
  from collections.abc import Iterator, Mapping
7
8
  from logging.config import dictConfig
8
9
  from typing import Any, Tuple
@@ -32,8 +33,8 @@ def on_preload_parsed(options: Mapping[str, Any], **kwargs: Any) -> None:
32
33
  loader = YamlLoader(app, config=config_path, config_key=config_key)
33
34
  loader.read_configuration()
34
35
  except Exception:
35
- log.exception("An error occured while loading YAML configuration")
36
- raise # Will be ignored by celery
36
+ traceback.print_exc()
37
+ sys.exit(1)
37
38
 
38
39
 
39
40
  def add_yaml_option(app: Celery) -> None:
File without changes
File without changes