fix(render-node): match job sizes per encoder; blank batch entries name no preset
A node announced one size limit, the largest of all its encoders (managed MJPEG at 65535 px), so it claimed H.264 jobs larger than its H.264 encoder takes. Each offered encoder now carries its own limit and the server matches codec and size per encoder; the node-wide limit is the largest offered one, for encoders that announce none. A hand-written batch with null or blank entries no longer throws when a job is posted or examined. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
6 files changed
+55
-15
No files matched your search
@@ -22,10 +22,17 @@ public sealed record JobDto(
|
||||
/// <summary><c>POST /api/v1/jobs</c>: kind = render, deep-analyse, proxies, thumbs, verify, scan, rebuild, maintenance…</summary>
|
||||
public sealed record CreateJobRequest(string Kind, IReadOnlyList<Guid> Target, string? ParametersJson);
|
||||
|
||||
/// <summary><c>POST /api/v1/nodes/register</c>: a client offers its GPU encoders (BRIEF §14.7).</summary>
|
||||
/// <summary>
|
||||
/// <c>POST /api/v1/nodes/register</c>: a client offers its GPU encoders (BRIEF §14.7). <see cref="MaxWidth"/> ×
|
||||
/// <see cref="MaxHeight"/> is the largest output of any of them, for encoders that announce no limit of their own.
|
||||
/// </summary>
|
||||
public sealed record RegisterNodeRequest(string ClientName, IReadOnlyList<NodeEncoder> Encoders, int MaxWidth, int MaxHeight);
|
||||
|
||||
public sealed record NodeEncoder(string Codec, string Name, bool Hardware, bool TenBit);
|
||||
/// <summary>
|
||||
/// One encoder of a render node. <see cref="MaxWidth"/> × <see cref="MaxHeight"/> is its largest output (0 = not announced:
|
||||
/// the node's own limit applies), so jobs go only to a node with an encoder of their codec that takes their size.
|
||||
/// </summary>
|
||||
public sealed record NodeEncoder(string Codec, string Name, bool Hardware, bool TenBit, int MaxWidth = 0, int MaxHeight = 0);
|
||||
|
||||
public sealed record RenderNodeDto(Guid Id, string ClientName, string Username, IReadOnlyList<NodeEncoder> Encoders, DateTimeOffset LastHeartbeat, string State);
|
||||
|
||||
|
||||
Reference in new issue
Block a user