chore(backend,infra): resolve template update conflicts, import check knows the watcher and the api login
This commit is contained in:
1 parent
5fb8f8a534
commit
56146e4e8d
27 files changed
+27
-82
No files matched your search
@@ -4,8 +4,9 @@ import sys
|
||||
|
||||
HEAVY = ["aiogram", "pyrogram", "fastapi", "google.genai"]
|
||||
SERVICES = {
|
||||
"api": (["api.app"], {"fastapi"}),
|
||||
"api": (["api.app"], {"fastapi", "pyrogram"}),
|
||||
"userbot": (["userbot.runner", "userbot.handlers"], {"pyrogram"}),
|
||||
"watcher": (["watcher.runner"], {"pyrogram"}),
|
||||
}
|
||||
PROBE = """
|
||||
import importlib, sys
|
||||
@@ -13,7 +14,7 @@ for module in sys.argv[1].split(","):
|
||||
importlib.import_module(module)
|
||||
print(" ".join(name for name in sys.argv[2:] if name in sys.modules))
|
||||
"""
|
||||
ENV = dict(os.environ)
|
||||
ENV = {**os.environ, "AUTH__TOKEN": "check"}
|
||||
|
||||
|
||||
def loaded(modules: list[str]) -> tuple[set[str], str]:
|
||||
|
||||
Reference in new issue
Block a user