Skip to content

Stop the fly proxy from shutting the bot down - #95

Merged
NickLyrick merged 1 commit into
devfrom
deploy-fix
Aug 9, 2026
Merged

Stop the fly proxy from shutting the bot down#95
NickLyrick merged 1 commit into
devfrom
deploy-fix

Conversation

@slipmetal

Copy link
Copy Markdown
Collaborator

The app declared an http service on port 8080 with autostop enabled, but a long polling bot never listens on a port. The proxy therefore cordoned and stopped the machine roughly five minutes after every start, and autostart could not bring it back because no traffic ever reaches the app. Drop the service section so the worker simply runs.

Also raise kill_timeout to 30s, which the graceful shutdown now needs, record the 768MB the machine already runs with, and remove the obsolete experimental block left over from the 2022 nomad config.

The app declared an http service on port 8080 with autostop enabled, but
a long polling bot never listens on a port. The proxy therefore cordoned
and stopped the machine roughly five minutes after every start, and
autostart could not bring it back because no traffic ever reaches the
app. Drop the service section so the worker simply runs.

Also raise kill_timeout to 30s, which the graceful shutdown now needs,
record the 768MB the machine already runs with, and remove the obsolete
experimental block left over from the 2022 nomad config.
@slipmetal
slipmetal requested a review from NickLyrick August 9, 2026 14:17
@NickLyrick
NickLyrick merged commit 0ea21bf into dev Aug 9, 2026
1 check passed
NickLyrick added a commit that referenced this pull request Aug 9, 2026
Stop the fly proxy from shutting the bot down (#95)

The app declared an http service on port 8080 with autostop enabled, but
a long polling bot never listens on a port. The proxy therefore cordoned
and stopped the machine roughly five minutes after every start, and
autostart could not bring it back because no traffic ever reaches the
app. Drop the service section so the worker simply runs.

Also raise kill_timeout to 30s, which the graceful shutdown now needs,
record the 768MB the machine already runs with, and remove the obsolete
experimental block left over from the 2022 nomad config.
NickLyrick added a commit that referenced this pull request Aug 9, 2026
Merge pull request #96 from NickLyrick/dev

Stop the fly proxy from shutting the bot down (#95)

The app declared an http service on port 8080 with autostop enabled, but
a long polling bot never listens on a port. The proxy therefore cordoned
and stopped the machine roughly five minutes after every start, and
autostart could not bring it back because no traffic ever reaches the
app. Drop the service section so the worker simply runs.

Also raise kill_timeout to 30s, which the graceful shutdown now needs,
record the 768MB the machine already runs with, and remove the obsolete
experimental block left over from the 2022 nomad config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants