Skip to content

Commit f635ee3

Browse files
committed
update container shutdown
1 parent 20e1523 commit f635ee3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/content/docs/containers/platform-details/architecture.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,9 @@ should be built for the `linux/amd64` architecture, and should stay within
8888

8989
### Container shutdown
9090

91-
Cloudflare will not actively shut off a container instance after a specific amount of
92-
time. If you do not set [`sleepAfter`](https://github.com/cloudflare/containers/blob/main/README.md#properties) on your Container class, or stop the instance
93-
manually, it will continue to run unless its host server is restarted. This
94-
happens on an irregular cadence, but frequently enough where Cloudflare does not
95-
guarantee that any instance will run for any set period of time.
91+
If you do not set [`sleepAfter`](https://github.com/cloudflare/containers/blob/main/README.md#properties)
92+
on your Container class, or stop the instance manually, the container will shut down soon after the container stops receiving requests.
93+
By setting `sleepAfter`, the container will stay alive for approximately the specified duration.
9694

9795
You can manually shutdown a container instance by calling `stop()` or `destroy()` on it - refer to the [Container package docs](https://github.com/cloudflare/containers/blob/main/README.md#container-methods) for more details.
9896

0 commit comments

Comments
 (0)