Skip to content

Commit

Permalink
update fly runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Jun 8, 2023
1 parent 24f5057 commit d966184
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
43 changes: 22 additions & 21 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,42 +1,43 @@
# fly.toml file generated for max-ai on 2023-04-06T13:28:44-07:00
# fly.toml app configuration file generated for max-ai on 2023-06-07T18:13:31-07:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "max-ai"
kill_signal = "SIGINT"
kill_timeout = 5
primary_region = "sjc"
processes = []
kill_signal = "SIGINT"
kill_timeout = "5s"

[mounts]
source="slack_data"
destination="/app/data"
[experimental]
auto_rollback = true

[env]
PRIMARY_REGION = "sjc"

[experimental]
auto_rollback = true
[[mounts]]
source = "slack_data"
destination = "/app/data"

[[services]]
http_checks = []
protocol = "tcp"
internal_port = 8000
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"

[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
handlers = ["http"]
force_https = true

[[services.ports]]
handlers = ["tls", "http"]
port = 443
handlers = ["tls", "http"]
[services.concurrency]
type = "connections"
hard_limit = 25
soft_limit = 20

[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
grace_period = "1s"
restart_limit = 0
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel

from ai import ai_chat_thread, update_oncalls
from ai import ai_chat_thread
from pipeline import MaxPipeline, Entries
from slack import app as slack_app

Expand Down Expand Up @@ -85,7 +85,7 @@ def receive_spawn():

@app.post("/update")
def update_oncall():
return update_oncalls()
return "nope"


@app.post("/chat")
Expand Down

0 comments on commit d966184

Please sign in to comment.