@drupflare/workforce - v0.3.0
    Preparing search index...

    Class VersionsApi

    The versions and deployments surface for one Worker on one plane.

    Index
    • Points traffic at one or more versions.

      Under a gradual deployment, requests to a given Durable Object use the same version for the life of that deployment. So a 10 percent split puts roughly 10 percent of OBJECTS wholly on the new code rather than 10 percent of each object's requests, which is a per-object canary and is not reproducible at the application layer.

      Parameters

      Returns Promise<Deployment>

    • Re-points the deployment at a version the plane still holds.

      This is git reset: no new version is created and the version list does not grow. See revert() for the other one.

      Parameters

      • id: string
      • options: { lifecycleVersionIds?: ReadonlySet<string> } = {}

      Returns Promise<Deployment>