using Big.Application; using Microsoft.Extensions.Logging; namespace Big.Infrastructure; /// /// One poll tick of the external-task worker (ADR-0009): acquire the parked OpenZaakAanmaken /// jobs, hand each to the to open a zaak via the ACL, and complete the /// Flowable job with the resulting zaak URL. A job that fails is logged and left un-completed so /// Flowable redelivers it (§8.6). Split out from the hosted so the /// acquire→process→complete logic is unit-testable without a running host. /// public sealed class OpenZaakJobProcessor( IExternalWorkerClient client, OpenZaakWorker worker, ILogger logger) { /// Process up to jobs. Returns the number completed. public async Task PumpOnceAsync(int maxJobs, CancellationToken ct = default) { // STUB (red). await Task.CompletedTask; _ = logger; return 0; } }