Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/tools/funnel/.funnel-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"source": "https://github.com/calypr/funnel",
"branch": "develop",
"source_directory": "docs",
"revision": "738ab75a7056321d82cf57d9781d0af5a4433da6",
"revision": "14511f237d1c2fe029ef4ab77c862f3553d29092",
"files": [
"compute.md",
"compute/aws-batch.md",
Expand Down Expand Up @@ -46,6 +46,7 @@
"security/advanced.md",
"security/basic.md",
"security/oauth2.md",
"service-info.md",
"storage.md",
"storage/ftp.md",
"storage/google-storage.md",
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/funnel/docs/compute/grid-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It is recommended to update the submit file template so that the
`funnel worker run` command takes a config file as an argument
(e.g. `funnel worker run --config /opt/funnel_config.yml --taskID {{.TaskId}}`)

Download the [Grid Engine submit template](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/website/static/funnel-config-examples/gridengine-template.txt)
Download the [Grid Engine submit template](https://github.com/calypr/funnel/blob/14511f237d1c2fe029ef4ab77c862f3553d29092/website/static/funnel-config-examples/gridengine-template.txt)
to `/etc/funnel/gridengine-template.txt`, then configure Funnel to read it:

```yaml
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/funnel/docs/compute/htcondor.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It is recommended to update the submit file template so that the
`funnel worker run` command takes a config file as an argument
(e.g. `funnel worker run --config /opt/funnel_config.yml --taskID {{.TaskId}}`)

Download the [HTCondor submit template](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/website/static/funnel-config-examples/htcondor-template.txt)
Download the [HTCondor submit template](https://github.com/calypr/funnel/blob/14511f237d1c2fe029ef4ab77c862f3553d29092/website/static/funnel-config-examples/htcondor-template.txt)
to `/etc/funnel/htcondor-template.txt`, then configure Funnel to read it:

```yaml
Expand Down
6 changes: 3 additions & 3 deletions docs/tools/funnel/docs/compute/kubernetes-templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ The reference files originated in the [Funnel Helm chart](https://github.com/ohs

Templates used by Go tests live beside their tests:

- [worker job](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/internal/compute/kubernetes/testdata/worker-job.yaml)
- [service account](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/internal/compute/kubernetes/resources/testdata/serviceaccount.yaml)
- [executor job](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/internal/worker/testdata/executor-job.yaml)
- [worker job](https://github.com/calypr/funnel/blob/14511f237d1c2fe029ef4ab77c862f3553d29092/internal/compute/kubernetes/testdata/worker-job.yaml)
- [service account](https://github.com/calypr/funnel/blob/14511f237d1c2fe029ef4ab77c862f3553d29092/internal/compute/kubernetes/resources/testdata/serviceaccount.yaml)
- [executor job](https://github.com/calypr/funnel/blob/14511f237d1c2fe029ef4ab77c862f3553d29092/internal/worker/testdata/executor-job.yaml)
2 changes: 1 addition & 1 deletion docs/tools/funnel/docs/compute/pbs-torque.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It is recommended to update the submit file template so that the
`funnel worker run` command takes a config file as an argument
(e.g. `funnel worker run --config /opt/funnel_config.yml --taskID {{.TaskId}}`)

Download the [PBS/Torque submit template](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/website/static/funnel-config-examples/pbs-template.txt)
Download the [PBS/Torque submit template](https://github.com/calypr/funnel/blob/14511f237d1c2fe029ef4ab77c862f3553d29092/website/static/funnel-config-examples/pbs-template.txt)
to `/etc/funnel/pbs-template.txt`, then configure Funnel to read it:

```yaml
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/funnel/docs/compute/slurm.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ It is recommended to update the submit file template so that the
`funnel worker run` command takes a config file as an argument
(e.g. `funnel worker run --config /opt/funnel_config.yml --taskID {{.TaskId}}`)

Download the [Slurm submit template](https://github.com/calypr/funnel/blob/738ab75a7056321d82cf57d9781d0af5a4433da6/website/static/funnel-config-examples/slurm-template.txt)
Download the [Slurm submit template](https://github.com/calypr/funnel/blob/14511f237d1c2fe029ef4ab77c862f3553d29092/website/static/funnel-config-examples/slurm-template.txt)
to `/etc/funnel/slurm-template.txt`, then configure Funnel to read it:

```yaml
Expand Down
2 changes: 2 additions & 0 deletions docs/tools/funnel/docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ The server serves the task API, web dashboard, and optionally runs a task schedu
It serves both HTTP/JSON and gRPC/Protobuf.

Run the server with `funnel server`. Its implementation lives in `internal/server`.
See the [service info docs](service-info.md) to configure how a deployment
identifies itself in `GET /service-info`.

### Storage

Expand Down
107 changes: 107 additions & 0 deletions docs/tools/funnel/docs/service-info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Service info

`GET /service-info` (and the gRPC `GetServiceInfo` method) describes the Funnel
deployment following the [GA4GH service-info specification][service-info]
(v1.0.0) and the TES `tesServiceInfo` extension. Service registries and clients
use it to tell deployments apart and to show who runs them.

> [!IMPORTANT]
> Service info is public. Funnel serves it without authentication, even when
> `Server.BasicAuth` or `Server.OidcAuth` is configured. Everything you set here,
> including the storage locations you advertise, is visible to anyone who can
> reach the server. Don't put credentials, internal host names, or bucket names
> you want to keep private into these fields.

## Configuration

`Server.ServiceName` (also available as the `--Server.ServiceName` flag) sets
`name`. The optional `Server.ServiceInfo` section of the configuration file
sets the identity of the deployment; it has no command-line flags. The HTTP and
gRPC endpoints report the same values.

```yaml
Server:
ServiceName: Example TES
ServiceInfo:
Id: org.example.tes
Description: Task execution service of Example Org
Organization:
Name: Example Org
Url: https://example.org
ContactUrl: mailto:admin@example.org
DocumentationUrl: https://example.org/docs/tes
Environment: prod
CreatedAt: 2026-01-01T00:00:00Z
Storage:
- s3://example-bucket
```

| Key | Response field | Built-in value |
| --- | --- | --- |
| `Server.ServiceName` | `name` | `Funnel` |
| `Id` | `id` | `org.ga4gh.funnel` |
| `Description` | `description` | `Funnel is a toolkit for distributed task execution via a simple, standard API.` |
| `Organization.Name`, `Organization.Url` | `organization.name`, `organization.url` | `CALYPR Data Platform`, `https://github.com/calypr/` |
| `ContactUrl` | `contactUrl` | `https://github.com/calypr/` |
| `DocumentationUrl` | `documentationUrl` | `https://github.com/calypr/funnel` |
| `Environment` | `environment` | `development` |
| `CreatedAt` | `createdAt` | `2016-03-21T16:27:49-07:00` |
| `Storage` | `storage` | `file:///path/to/local/funnel-storage`, `s3://ohsu-compbio-funnel/storage` |

Funnel always reports `type` (`org.ga4gh:tes:1.1.0`), `version` (the Funnel
version), `updatedAt` (the time of the request), and
`tesResources_backend_parameters` (from the compute backend) itself; they can't
be configured.

The built-in values describe the Funnel project, not your deployment, and the
built-in storage locations are only examples. Every deployment that registers
with a service registry should at least set its own `Id`, `Organization`, and
`Environment`. The specification asks for an `id` that is unique for each
service; reverse domain name notation (`org.example.tes`) is recommended.

## Empty values

Every key is optional:

- A key that is missing, or set to an empty string, keeps its built-in value.
This also applies to `Server.ServiceName`. Existing configurations without a
`ServiceInfo` section report the same service info as before, except that an
empty `ServiceName` now reports `Funnel` instead of an empty `name`, which
the specification requires.
- `Storage` is replaced as a whole: a non-empty list replaces both built-in
locations, while a missing or empty list (`Storage: []`) keeps them. Funnel
can't report an empty `storage` list. To avoid advertising the example
locations, list the locations you want to advertise.
- `Organization` is replaced as a whole as well. Either leave out both `Name`
and `Url` to keep the built-in organization, or set both: the specification
requires both, so setting only one of them is an error.

## Validation

`funnel server run` checks the configured values against the service-info
specification at startup and refuses to start if any of them is invalid,
naming every invalid key:

- `ServiceName`, `Id`, `Description`, `Environment`, and `Organization.Name`
must not consist only of whitespace.
- `Organization.Url`, `ContactUrl`, and `DocumentationUrl` must be absolute
`http` or `https` URLs with a host, such as `https://example.org`, written
with the characters [RFC 3986][rfc3986] allows (percent-encode others, and
use the ASCII form of internationalized domain names). `ContactUrl` may also
be an email address as a `mailto:` URI (`mailto:admin@example.org`), as the
specification suggests. Clients show these values as links, so Funnel is
stricter here than the specification's `format: uri`: other schemes, such as
`javascript:`, `data:` or `tel:`, are rejected, and so are URLs that contain
credentials (`https://user:password@...`).
- `CreatedAt` must be an [RFC 3339][rfc3339] timestamp with a time zone, such
as `2026-01-01T00:00:00Z`. Leap seconds (`:60`) aren't accepted.
- `Storage` entries must not be empty or consist only of whitespace. The TES
specification allows any string; URIs such as `s3://example-bucket` are the
convention.

`Environment` is free text. The specification suggests `prod`, `test`, `dev`,
and `staging`, but doesn't enforce them.

[service-info]: https://github.com/ga4gh-discovery/ga4gh-service-info/blob/v1.0.0/service-info.yaml
[rfc3986]: https://www.rfc-editor.org/rfc/rfc3986
[rfc3339]: https://www.rfc-editor.org/rfc/rfc3339
17 changes: 9 additions & 8 deletions docs/tools/funnel/docs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,24 +597,25 @@ last returned creation time and ID, matching their deterministic sort order.
Legacy ID-only tokens remain accepted while their referenced task exists; new
tokens can resume even after that task is deleted.

The server's gRPC response limit defaults to 4 MiB. List pages account for task records and the continuation token within that
ceiling. If one task cannot fit, Funnel
The server's gRPC response limit defaults to 64 MiB. List pages account for task
records and the continuation token within that ceiling. If one task cannot fit, Funnel
returns `RESOURCE_EXHAUSTED` with its task ID and suggests requesting `MINIMAL`
or increasing the configured limit. Smaller pages cannot make a single large
task smaller.

To support larger task responses, configure the server before starting it:
Set `Server.MaxResponseBytes` before starting Funnel to change the limit. For
example, the following configuration limits responses to 32 MiB.

```yaml
Server:
MaxResponseBytes: 8388608
MaxResponseBytes: 33554432
```

`0` selects the default. The setting
also controls the receive limit of Funnel's internal HTTP-to-gRPC gateway, so
`0` selects the default. The setting also controls the receive limit of Funnel's internal HTTP-to-gRPC gateway, so
HTTP clients such as the dashboard and CLI can receive the supported response.
External gRPC clients must configure their own receive limit when requesting
larger responses. `GetTask` is subject to the same response ceiling.
Funnel's internal RPC clients default to a 64 MiB receive limit. External gRPC
clients must configure a receive limit large enough for the responses they
request. `GetTask` is subject to the same response ceiling.

This is a protobuf transport budget, not a JSON-size or process-memory limit.
JSON encoding can be larger, and the server must still load each candidate task
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/funnel/docs/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Update scripts that refer to the former repository layout:
- Update custom linker flags to use `github.com/calypr/funnel/version`.
- Remove calls to the retired `bundle-examples` Make target.

The source build currently requires Go 1.27.3, as declared in `go.mod`.
The source build currently requires Go 1.27.4, as declared in `go.mod`.
Integration tests clean up generated files by default. Pass
`-funnel-keep-artifacts` when retaining them for debugging. Resources still close
when files are retained. See [developer test instructions](development/developers.md#go-tests)
Expand Down
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions zensical.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ nav = [
{ "Download" = "tools/funnel/docs/download.md" },
{ "Tasks" = "tools/funnel/docs/tasks.md" },
{ "Upgrade Funnel" = "tools/funnel/docs/upgrading.md" },
{ "Service info" = "tools/funnel/docs/service-info.md" },
{ "Storage" = [
"tools/funnel/docs/storage.md",
{ "FTP" = "tools/funnel/docs/storage/ftp.md" },
Expand Down