-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
21 lines (17 loc) · 753 Bytes
/
Copy pathfly.toml
File metadata and controls
21 lines (17 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
app = "platinum"
primary_region = "ams"
# main.py catches KeyboardInterrupt, so SIGINT is what triggers the graceful
# shutdown: closing the bot session, the scheduler and the database pool, and
# notifying the admins over the network. Five seconds was not enough room.
kill_signal = "SIGINT"
kill_timeout = "30s"
# No [[services]] or [http_service] on purpose. This is a Telegram long polling
# bot: it only opens outbound connections and never listens on a port. Declaring
# a service hands the machine to the fly proxy, which cordons and stops it once
# no traffic arrives on the declared port — that is what took the bot down.
[processes]
worker = "python main.py"
[[vm]]
size = "shared-cpu-1x"
memory = "512mb"
processes = ["worker"]