Import ClientFlow production v4928.1.5.132.4

This commit is contained in:
plx
2026-07-29 13:11:01 +00:00
parent 6445044ac6
commit 261d342057
405 changed files with 48373 additions and 1401 deletions

View File

@@ -12,6 +12,7 @@ sys.path.insert(0, str(PROJECT_ROOT))
os.chdir(PROJECT_ROOT)
from app.config import settings
from app.db import init_db
from app.integration_outbox_service import (
claim_pending_outbox,
recover_stale_processing_outbox,
@@ -259,6 +260,11 @@ async def process_item(item: Dict[str, Any]) -> Outcome:
async def main() -> int:
# Ensure outbox schema compatibility before claiming rows. This makes the
# systemd worker safe on upgraded installs where the API has not yet run
# schema self-healing for newly selected columns such as sent_at.
init_db()
# Nota: as notas privadas do Chatwoot podem estar desligadas sem bloquear
# outras integrações como Packlink, Mautic ou Jasmin. A decisão de processar
# cada target_system fica em integration_enabled() e no handler específico.