Add cooperative task recovery and persistent live status
Build custom container images / build (map[base_image:php:8-fpm-alpine build_args:PHP_VERSION=8 context:php8-pgsql fingerprint_command:{ apk info -v | LC_ALL=C sort; find /usr/local/lib/php/extensions /usr/local/etc/php/conf.d -type f -exec sha256sum {} + | LC_ALL=C sort; } name:ph… (push) Successful in 40s
Build custom container images / build (map[base_image:postgres:18 build_args:PG_VERSION=18 POSTGIS_VERSION=3 VCHORD_VERSION=0.5.3 context:postgres fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; find /usr/lib/postgresql -type f -exec sha256su… (push) Successful in 49s
Build custom container images / build (map[base_image:python:3 build_args:PYTHON_VERSION=3 context:python-tools fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:python-tools oci_labels:org.opencontainers.ima… (push) Successful in 1m37s
Build custom container images / build (map[base_image:python:3.12-slim build_args:PYTHON_VERSION=3.12-slim context:linkki-tiedotus fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:linkki-tiedotus oci_labels:… (push) Successful in 36s
Build custom container images / build (map[base_image:python:3.12-slim build_args:PYTHON_VERSION=3.12-slim context:timepoll fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:timepoll oci_labels:org.opencontai… (push) Successful in 42s

This commit is contained in:
ajp_anton committed 2026-10-29 22:12:04 +00:00
1 parent 034fecbd51
commit 3bfd199b9c
28 files changed
+2356 -172

No files matched your search

+21
View File
@@ -9,6 +9,27 @@ from app.discovery import Group, TaskCatalog
from .conftest import write_task
def test_discovers_embedded_recovery_and_literal_resources_without_import(tmp_path):
path=write_task(tmp_path,'tasks','change.py', '''
"""A recoverable task."""
RESOURCES = ('shared-files', 'shared-files')
def recover():
raise RuntimeError('Must not run during discovery')
raise RuntimeError('Must not import during discovery')
''')
task=TaskCatalog(tmp_path).task('tasks/change.py')
assert task.recoverable is True
assert task.resources==('group:tasks','shared-files')
path.write_text('class Example:\n def recover(self): pass\n')
assert TaskCatalog(tmp_path).task('tasks/change.py').recoverable is False
def test_resources_do_not_execute_expressions(tmp_path):
write_task(tmp_path,'tasks','change.py',"RESOURCES = tuple(['shared-files'])\n")
with pytest.raises(ValueError):
TaskCatalog(tmp_path).groups()
def test_discovers_only_direct_non_hidden_python_tasks(tmp_path: Path) -> None:
root = tmp_path / "tasks"
write_task(root, "media_tasks", "check_one.py", '"""Checks one thing."""\n')