Suppress "App is not listening on the expected address" warning

I currently have Fly app with 2 processes, one is a background cron process and the other is a web service. The web service listens on port 8080 and is configured in the http_service block, but the cron service doesn’t listen on any port because it doesn’t take in any requests. Is there anyway to suppress this warning as it’s not applicable (to my knowledge) in my situation?

Here is my config for reference:

app = "app-name"
primary_region = "iad"
kill_signal = "SIGTERM"
kill_timeout = 5

[build.args]
	GO_VERSION = "1.23"

[processes]
	app = "run-app"
	cron = "run-cron"

[env]
	PORT = "8080"
	ENV = "production"

[mounts]
	source = "nats_data"
	destination = "/nats"
	processes = ["app"]
	initial_size = "1GB"
	auto_extend_size_threshold = 90
	auto_extend_size_increment = "1GB"

[deploy]
	strategy = "rolling"
	release_command = "run-postgres-migrations"

[http_service]
	processes = ["app"]
	internal_port = 8080
	force_https = true
	auto_stop_machines = "off"
	auto_start_machines = false
	min_machines_running = 3

	[[http_service.checks]]
		grace_period = "10s"
		interval = "30s"
		method = "GET"
		timeout = "5s"
		path = "/health"

I’m interested in this answer too, because I actually do define some services on machines solely for the purpose of tripping Fly Proxy, but the machine itself doesn’t listen on the defined port.

1 Like

Can you add this to the checks?

2 Likes

I don’t think the checks section in the http_service takes a processes parameter. At least it’s not in the documentation anywhere. I can try adding it regardless though and see what happens.

Sorry, forgot to follow up.

I think the solution by @khuezy may have fixed it. I did have the warning show up on one deploy after implementing it, but I had a deployment problem on that deploy anyway. With 4 other deployments I’ve done I have not seen the warning show up.

I’ll mark that as the solution, but if anyone at Fly can confirm this is the proper way to do this, that would be even better.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.