2a0d2303c3
A slight error in the tasks_get_by_image() DB API method resulted in our excluding in-progress tasks from the returned list. This is because those tasks have expires_at=NULL, and we were comparing the expires_at>=$NOW to find unexpired tasks. This makes us check for "NULL or not expired" instead. We did have a test asserting the wrong behavior, but it was done to increase coverage and thus was asserting the behavior of the code and not the *desired* behavior. This fixes that as well. Closes-Bug: #1922928 Change-Id: I1b6971888673b64ef60bed8fbcc97bbcbcf5c2ac |
||
---|---|---|
.. | ||
alembic_migrations | ||
metadef_api | ||
migrate_repo | ||
__init__.py | ||
api.py | ||
metadata.py | ||
models.py | ||
models_metadef.py |