This repository hosts the ac-pulse Customer Success signal sync service for ActiveCampaign.
The full implementation is currently in the ac-pulse/ subdirectory. Root-level files are provided so Spark can detect and run the app.
- Root
main.pyaddsac-pulse/toPYTHONPATHand exposesapp. - Root
requirements.txtsupports Spark Python build auto-detection. - Root
spark.jsonconfigures health checks and the background arq worker.
- Runtime: Python 3.12 (
runtime.txt) - Health check:
GET /healthz - Worker command:
PYTHONPATH=/app/ac-pulse arq app.workers.settings.WorkerSettings
Set these in Spark app settings/secrets:
AC_API_URL(sandbox:https://brandontest.api-us1.com/api/3)AC_API_KEYSNOWFLAKE_ACCOUNTSNOWFLAKE_USERSNOWFLAKE_PASSWORDSNOWFLAKE_WAREHOUSESNOWFLAKE_DATABASESNOWFLAKE_ROLEACCOUNT_ID_MAP_PATH(example:./data/account_id_map.csv)REDIS_URLCRON_SECRET
GET /healthzPOST /resync/{account_id}GET /audit/recentPOST /admin/bootstrap-account-fields