FerryDocs
ConceptsServices

Background workers

A background worker is a process that runs all the time and has no port.

Edit on GitHub
no trafficProxyWorkernode worker.jsDatastore

A background worker has no port. The proxy sends no traffic to it.

1 / 3

A does work that no request waits for. Examples are queue consumers, bots and stream processors.

Ferry does not give a PORT variable to a worker.

When a worker is healthy

A new is healthy when it runs for 5 seconds after its start. See Health checks.

Create a worker

Terminal
ferry create mailer --type worker --repo https://github.com/you/app --start-cmd "node worker.js"

--start-cmd is the command that starts the process. See Start command.

On this page