https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 1c93e553a16aa093f9611dc9b8842bab038f1d29 authored by Nicolas Dandrimont on 12 June 2020, 10:24:20 UTC, committed by Nicolas Dandrimont on 15 June 2020, 13:41:02 UTC
This adds a pair a functions to the backend:
 - `get_or_create_lister` pulls the record for a given lister from the database
 - `update_lister` updates the record for a given lister in the database

This is one of the basic building blocks for the integration of lister
information directly in the scheduler database.

Related to T2442.
1 parent 466ac59
History
Tip revision: 1c93e553a16aa093f9611dc9b8842bab038f1d29 authored by Nicolas Dandrimont on 12 June 2020, 10:24:20 UTC
Implement basic storage and retrieval of lister information
Tip revision: 1c93e55
File Mode Size
data
docs
sql
swh
.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-- 292 bytes
mypy.ini -rw-r--r-- 550 bytes
pyproject.toml -rw-r--r-- 39 bytes
pytest.ini -rw-r--r-- 54 bytes
requirements-swh.txt -rw-r--r-- 51 bytes
requirements-test.txt -rw-r--r-- 92 bytes
requirements.txt -rw-r--r-- 452 bytes
setup.cfg -rw-r--r-- 247 bytes
setup.py -rwxr-xr-x 2.3 KB
tox.ini -rw-r--r-- 664 bytes

README.md

back to top