Skip to content

fix(jobs): treat an engine endpoint without HTTP/2 as jobs unsupported - #14559

Merged
ndeloof merged 1 commit into
docker:mainfrom
glours:fix-jobs-probe-http2
Nov 27, 2026
Merged

ndeloof merged 1 commit into
docker:mainfrom
glours:fix-jobs-probe-http2

Conversation

@glours

@glours glours commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

What this PR does

The jobs extension is reached over gRPC on the engine API socket. When that endpoint only speaks HTTP/1.1, as Docker Desktop's does, the probe failed before reaching the extension and was reported as "enabled but not ready": running a job exited 1 instead of falling back to a one-off service, as it does on an engine without the extension.

Report it as its own status, recognised by the HTTP/1.1 hint x/net adds to the HTTP/2 error. A connection dropped before the preface, or an extension the engine reports as not ready, stay errors. Orphan removal and down no longer warn about jobs they cannot reach.

Related issue

https://docker.atlassian.net/browse/DDB-896

The jobs extension is reached over gRPC on the engine API socket. When
that endpoint only speaks HTTP/1.1, as Docker Desktop's does, the probe
failed before reaching the extension and was reported as "enabled but
not ready": running a job exited 1 instead of falling back to a one-off
service, as it does on an engine without the extension.

Report it as its own status, recognised by the HTTP/1.1 hint x/net adds
to the HTTP/2 error. A connection dropped before the preface, or an
extension the engine reports as not ready, stay errors. Orphan removal
and down no longer warn about jobs they cannot reach.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
@glours
glours requested review from a team as code owners November 27, 2026 11:11
@glours
glours requested a review from ndeloof November 27, 2026 11:11

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟡 NEEDS ATTENTION

Comment thread pkg/compose/jobs.go Resolved
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ndeloof
ndeloof merged commit 3d3c8a3 into docker:main Nov 27, 2026
65 of 66 checks passed
@ndeloof
ndeloof deleted the fix-jobs-probe-http2 branch November 27, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants