mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 22:15:10 +00:00
feat: improve workflow agent tool interation
This commit is contained in:
1 parent
51dc49f0d8
commit
6dd5cf472a
12 files changed
+420
-214
No files matched your search
@@ -791,3 +791,16 @@ class TestIngestPoisonEvent:
|
||||
)
|
||||
|
||||
assert published[0][0][2]["operation"] == "reingest"
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_bare_worker_consumes_app_and_parsing_queues():
|
||||
"""task_queues declares every queue, so a worker started without -Q serves
|
||||
both app tasks and document parsing — a -Q-less dev worker must never
|
||||
silently strand attachment uploads or parse_document tasks."""
|
||||
import application.celeryconfig as celeryconfig
|
||||
from application.core.settings import settings
|
||||
|
||||
names = {queue.name for queue in celeryconfig.task_queues}
|
||||
assert "docsgpt" in names
|
||||
assert settings.DOCUMENT_PARSE_QUEUE in names
|
||||
Reference in new issue
Block a user