Repository navigation
Releases
Releases · meirdick/cf-orbs
cf-orbs 0.2.6
Added
cf-orbs status <orb>showsdisk image: the image the orb's disk came from, and whether it is older than the image now deployed under that key. A paused orb that restores aftercf-orbs upgradeor adeploywith a new digest keeps its old disk content; this shows it. A handle saved before this version has no image ref and showsunknown.
Fixed
cf-orbs upgradewarned that paused orbs may not restore after an upgrade. They do restore (R18); the warning now says they keep the old disk content and that new image content reaches only orbs started from the image.
cf-orbs 0.2.5
Fixed
- New threads did not start on an install whose provider container had become slow. A spawn that takes 1 s took the dispatch program more than 90 s, Amp timed out after 300 s and sent the spawn again with a new token, and the orb never got its setup requests. The cause of the slow container is not known: it had run for 7 days, and a new
litecontainer handled 10 spawns at once and 200 jobs in 15 min in tests. Three changes make the provider safe against it:- Watchdog: every 5 min the Worker asks the provider container to run
true. If it does not answer in 5 s two times in a row, the Worker restarts the container. No check in the first 10 min after a start, and at most one such restart in 30 min. dispatch.shstarts 2 processes for a job that is already done (was about 25). It reads the Worker's new plain-text replies (?format=text) with shell builtins and needs onlysh,curlandsleep(noawkorsed).- The Worker sends progress lines in groups, so dispatch polls less often.
- Watchdog: every 5 min the Worker asks the provider container to run
/v1/statusno longer waits on a provider container that does not answer. The log read stops after 5 s and the log tail says so. Before, one slow read blockedcf-orbs status,cf-orbs doctor,cf-orbs logs --providerand the 5-min provider check.
Added
- Config
providerInstance: size of the provider container,"lite"(default),"standard-1"or"standard-2".cf-orbs deployrestarts a running provider when the size changes. cf-orbs doctorfails theprovidercheck when the provider container runs but does not answer a log read.GET /v1/ops/<id>andPOST /v1/orbs/<orb>/opsaccept?format=text. The JSON replies are unchanged, so an olderdispatch.shon an external host keeps working.
Changed
- External provider hosts: copy the new
dispatch/dispatch.shafter you deploy the Worker. The new script needs a Worker from 0.2.5 or later.
cf-orbs 0.2.4
Added
init --adopt: take over a Worker of the same name that this folder did not create. A new control token replaces the old one, and this folder's config andimage/are deployed.initprints one warning.
Fixed
initin a folder with no saved deployment and no control token now stops when a Worker of the same name already exists in the account. Before, it deployed over that Worker: new control token, default config and image, old image keys dropped. The check runswrangler deployments list --json --name <name>before any token, secret or deploy, in every mode. If the check cannot run,initwarns and goes on. A rerun in the same folder is not checked. Neither is a folder that has.cf-orbs/control-token(a run that failed before it saved the URL, or a restored backup): it keeps the same token. Restoring on a new machine without the control token needs--adopt.
cf-orbs 0.2.3
Changed
- The default Amp provider name is
cloudflare, notcf-orbs. The order is--provider-name,AMP_ORB_PROVIDER_NAME, the saved name, thencloudflare. A second install with its own Worker name no longer takes that name as its provider name: pass--provider-name. The Worker name default is stillcf-orbs.
Added
initprints oneback up:line before the finalampcommand. It names the files to keep and links the guide.- README: a Back up section. Docs: Back up and restore.
cf-orbs 0.2.2
Changed
- The
inittoken prompt names the Amp page where you create the token: Amp Settings → Orbs → Add Provider. initwarns when the provider name is not given explicitly, that is, when it comes from the confignameor the defaultcf-orbs. The name must match the one in Amp. A name from--provider-name,AMP_ORB_PROVIDER_NAMEor a previous run gives no warning.init --helplists the full provider-name fallback order.- The comments in
image/Dockerfile,provider/Dockerfile,provider/entry.shanddispatch/dispatch.shno longer contain internal requirement codes.initcopies these files into your project.
Docs
cf-orbs.config.example.jsonclistsdebugExec,inactivityTimeoutMinutes,alarmSecondsandampImageDigest.- README:
instance.vcpuaccepts fractions between 1 and 4. The README links the docs site.
cf-orbs 0.2.1
Fixed
cf-orbs doctorread the provider Dockerfile from the CLI templates only. In a source checkout beforenpm run buildthat file does not exist, so the check failed. It now reads the source file in that case. 0.2.0 was tagged but not published because of this test failure.
cf-orbs 0.1.1
Fixed
package.jsonbinpath has no./prefix, so npm no longer warns when it publishes.