blobs/ holds a blob.yaml: the manifest of one blob, which says what the blob holds
once the app is installed. The folder’s name is the blob’s alias in the app
(app.yaml). One format serves every blob type: the same two header lines,
then the blob type’s id, then what that type defines.
- The platform refuses a format version or a key it does not know, naming it, so an old platform never half-reads a
new manifest.
sourceis not a key of a definition or an object. A definition that names its file withsourceis two problems:blobs/flows/blob.yaml: definitions[0].source: unknown key; the keys here are alias, category, file, asandblobs/flows/blob.yaml: definitions[0].file: required. An object’ssourceis two as well:blobs/flows/blob.yaml: sessions[0].objects[0].source: unknown key; the keys here are alias, value, file, write, thenblobs/flows/blob.yaml: sessions[0].objects[0]: needs exactly one of value and file. - Every string leaf is a template, rendered at install with the names
inputs,blobs,accountsandinstallation(Templates). The files a manifest names, an object’sfileamong them, are copied as they are. limitsis the package’s. The app’s definition reader reads it, and no blob type ever sees it (Limits).buildis the CLI’s. It says whatblobhub app buildcompiles into a definition, and the platform never sees it:build/holds each manifest without itsbuildkeys (Manifest).targetis refused inside an app. Outside an app the same file deploys a plain blob, wheretarget: {blob, revision}says which; inside one the installation decides (Manifest).
Limits
limits lists what a blob needs of its organization’s limits. Each entry names a limit of the
catalog by its id and gives one bound; Field Reports’ flows declares one (Workflow). Like the rest of
the manifest it is rendered at install, so a bound may be a template; an id may not.
- A retention takes
at_leastonly. Lowering a retention deletes executions the app never owned, soat_moston a retention limit, such asblobhub.compute.workflow.execution_retention_days, is refused when the definition is read. A bound that assumes the organization’s retention says so in a comment and in the app’s README. Field Reports’at_least: 400inflowsis a year of nightly runs and some by hand, as its comment says: it assumes the organization keeps a year of runs.acme-corpkeeps executions forever, so there the sessionreportsreaches 400 after about a year, which Field Reports’ README states. - One key per entry, and one entry per id in a file. A bound is a whole number of at least 0 in the limit’s unit
(a count, bytes, seconds or days), or a template that renders to one;
includestakes a list of module names. - Which ids: those in the catalog’s
platformgroup or in the folder’s own type’s group. A workflow folder may nameblobhub.compute.workflow.running_executions_per_org; it may not name a scheduler limit.platform.orgs_per_useris set per user, so no app can require it. - Not declarable: the
<type id>.enabledflags, which every install checks. A fixed limit may be named, and is checked against its fixed value. - Where it is evaluated follows from the limit, not from the folder. A limit whose levels stop at the organization,
as
platform.blobs_per_organdblobhub.compute.workflow.running_executions_per_org, is evaluated at the organization; any other at the folder’s blob, as the install will leave it. - An install checks requirements and never raises, lowers or copies a limit. BlobHub raises one when the plan’s problem is sent to support@blobhub.io (Changing a limit).
limits.
When it is checked
describe checks each declaration, so blobhub app push prints its problems
and blobhub app commit refuses a version that has any. Each problem names the file and the entry. Below, each is one
of Field Reports’ files with an entry added or changed, and gone wrong:
room on a minimum ends so use at_most instead. At plan, a problem of a manifest is prefixed invalid_app: , as in
invalid_app: blobs/flows/blob.yaml: limits[0]: blobhub.compute.workflow.execution_retention_days is a retention; use at_least, because a lower retention deletes executions.
A templated bound is checked once it renders with the install’s inputs, at plan. Were flows to take its modules from
an input, as includes: "{{ inputs.config.modules }}", a value that is not a list of module names is refused:
invalid_app: blobs/flows/blob.yaml: limits[1].includes renders to "requests", not a list of module names.
A plain blob’s deploy, blobhub workflow deploy or
blobhub scheduler deploy of the same file, applies no requirements: it prints
limits are checked by an install only and deploys.
Workflow
definitions lists the revision’s definitions of the four categories:
A listener otherwise acts as whoever last uploaded it,
which in an app is the admin who installed it, so an app names an account with
as. Its own templates, the
{{ event.… }} of its target, are in the file it names, which an install copies untouched, so they render when it
fires.
sessions lists the sessions an install makes sure exist, and the objects it writes in them:
An object has
value or file, not both and not neither: blobhub app build refuses it with
MANIFEST_INVALID. An object whose value reads an optional input that was left out is skipped.
Scheduler
schedules lists the blob’s schedules. Each holds a schedule’s own fields, as
Create Schedule takes them and the
Scheduler overview describes, and two more:
- A schedule otherwise fires as whoever created it, which in an app is the admin who installed it, so an app
names an account with
as. enabledis read when the schedule is created. Once it exists, whether it is on is runtime, and an upgrade leaves it as it is.- The target names a blob of the installation by
{{ blobs.flows.id }}, so an install appliesflowsbeforeschedules: blobs are applied in the order their templates need.
ONNX model
Were Field Reports to carry a model, say one that sorts notes by kind, a third folderblobs/classifier/ would hold
the model file beside its manifest:
blobhub app build copies the model file into build/ as it is: nothing compiles it.
Content and runtime
An install applies each manifest to its blob: the blob’s type makes the blob’s content what the manifest says, creating, updating and deleting, and leaves the blob’s runtime alone. Applying converges, so an install run again is safe. What is content and what is runtime is the type’s to say:
Each type checks its manifest when a version is committed, with stand-in values for the templates, and again before an
install. A type reports the overridable limits its content needs as requirements, such as how many definitions a
workflow manifest leaves, never as a problem at the catalog’s defaults; a fixed limit the content breaks, or a
malformed document, stays a problem (Requirements). So does a count no
override can allow:
describe reports a workflow manifest holding more
definitions of a category, or more objects in one session, than the limit’s most permissive value, and a commit
refuses it with 400 invalid_app:
blobhub.compute.workflow.listeners_per_revision and 10000 for
blobhub.compute.workflow.session_objects_per_session. A plan that meets such a count, in a draft or in a version
committed before a bound was lowered, answers it as an unmet row
(When a requirement is not met). What an installing
admin must see, such as a widget’s permissions, joins the plan’s lines, which an install shows for confirmation.
