diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 25fd4b9..b854d23 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -101,7 +101,9 @@ jobs: with: python-version: "3.12" install-extras: "test,orange" - - run: python -m gevent.monkey --module pytest . -v $PYTEST_WARNINGS + - run: >- + python -m gevent.monkey --module pytest . -v $PYTEST_WARNINGS + -W "ignore:Field name \"pk\" in \"EmbeddedJsonModel\" shadows an attribute in parent \"JsonModel\":UserWarning" test-3-12-redis: needs: build @@ -145,7 +147,9 @@ jobs: python-version: "3.12" install-extras: "test,orange" - run: redis-server & - - run: python -m gevent.monkey --module pytest . -v $PYTEST_WARNINGS + - run: >- + python -m gevent.monkey --module pytest . -v $PYTEST_WARNINGS + -W "ignore:Field name \"pk\" in \"EmbeddedJsonModel\" shadows an attribute in parent \"JsonModel\":UserWarning" test-3-12-examples-sql: needs: build diff --git a/CHANGELOG.md b/CHANGELOG.md index d858f04..dc321bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add ewoksjob options under `EWOKSJOB_OPTIONS`: ``log_memory_usage`` and ``detect_memory_leaks``. - Added ability to handle remote ewoksutils exception types on the client side. +### Fixed + +- Raise an error when the configuration from `EWOKS_CONFIG_URI` is empty. + ## [1.5.0] - 2026-03-30 ### Added diff --git a/src/ewoksjob/config.py b/src/ewoksjob/config.py index 13ea28d..c4555fb 100644 --- a/src/ewoksjob/config.py +++ b/src/ewoksjob/config.py @@ -104,6 +104,10 @@ def read_configuration(cfg_uri: str) -> dict: if "celery" in config: celery_config = config.pop("celery") config = {**config, **celery_config} + + if not config: + raise ValueError(f"Celery configuration '{cfg_uri}' is empty") + return config