https://forge.softwareheritage.org/source/swh-scheduler.git
Revision c99be451ddb236a19991192bc8ba15846f0b74ec authored by Antoine Lambert on 30 August 2023, 09:01:07 UTC, committed by Antoine Lambert on 30 August 2023, 11:51:28 UTC
The swh.lister package was required as testing dependency to check
registration of celery tasks for listers through plugins declared
in swh.workers entrypoints.

However, it is easy to create a fake lister in tests data to check
its correct registration through scheduler CLI so that swh.lister
dependency is not really needed.

As a consequence, worker plugins are now discovered in the function
register_task_types from the swh.scheduler.cli.task_type module,
previoulsy it was done when importing the module.
1 parent f052c9b
History
Tip revision: c99be451ddb236a19991192bc8ba15846f0b74ec authored by Antoine Lambert on 30 August 2023, 09:01:07 UTC
requirements-test: Remove swh.lister dependency
Tip revision: c99be45
File Mode Size
data
docs
sql
swh
.git-blame-ignore-revs -rw-r--r-- 140 bytes
.gitignore -rw-r--r-- 129 bytes
.pre-commit-config.yaml -rw-r--r-- 882 bytes
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 14 bytes
LICENSE -rw-r--r-- 34.3 KB
LICENSE.Celery -rw-r--r-- 2.6 KB
MANIFEST.in -rw-r--r-- 154 bytes
Makefile -rw-r--r-- 163 bytes
README.md -rw-r--r-- 292 bytes
conftest.py -rw-r--r-- 664 bytes
mypy.ini -rw-r--r-- 750 bytes
pyproject.toml -rw-r--r-- 237 bytes
pytest.ini -rw-r--r-- 62 bytes
requirements-journal.txt -rw-r--r-- 12 bytes
requirements-simulator.txt -rw-r--r-- 21 bytes
requirements-swh.txt -rw-r--r-- 48 bytes
requirements-test.txt -rw-r--r-- 301 bytes
requirements.txt -rw-r--r-- 518 bytes
setup.cfg -rw-r--r-- 342 bytes
setup.py -rwxr-xr-x 2.5 KB
tox.ini -rw-r--r-- 1.6 KB

README.md

back to top