This repository was archived by the owner on Mar 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfly.toml
More file actions
61 lines (50 loc) · 1.36 KB
/
fly.toml
File metadata and controls
61 lines (50 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# fly.toml app configuration file generated for audience-agent on 2025-07-25T18:40:28Z
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'audience-agent'
primary_region = 'fra'
[build]
[processes]
app = "fastmcp run main.py --transport http --host 0.0.0.0 --port 8000 --path /mcp/"
sync = "python sync_liveramp_catalog.py --full"
embeddings = "python scheduled_embeddings.py"
# MCP service configuration
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = 'off'
auto_start_machines = true
min_machines_running = 1
processes = ['app']
# Persistent volume for database
[mounts]
source = "signals_data"
destination = "/data"
processes = ["app"]
[env]
DATABASE_PATH = "/data/signals_agent.db"
# Main app VM configuration
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
processes = ['app']
# Cron configuration for LiveRamp sync
# Run daily at 2 AM UTC
[[vm]]
memory = '2gb' # More memory for sync process
cpu_kind = 'shared'
cpus = 2
processes = ['sync']
[vm.schedule]
cron = "0 2 * * *" # Daily at 2 AM UTC
# Cron configuration for embeddings generation
# Run daily at 3 AM UTC (after sync completes)
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
processes = ['embeddings']
[vm.schedule]
cron = "0 3 * * *" # Daily at 3 AM UTC