fix(landscape): bound node fan-out, cover override resolution, test the run consumer
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -67,8 +67,11 @@ func (h landscapeHandler) Handle(ctx context.Context, d amqp.Delivery) error {
|
||||
if err != nil {
|
||||
// The delivery is nacked without requeue (see Consumer.dispatch), so the
|
||||
// run will not be retried. Record the failure on the run itself;
|
||||
// otherwise it stays "running" forever. Best-effort: log if marking
|
||||
// fails, but still return the original error so the delivery is nacked.
|
||||
// otherwise it stays "running" forever. This covers the errors Execute
|
||||
// returns before it can mark the run itself (a missing run, a failed
|
||||
// status write), since Execute already marks the run failed for every
|
||||
// node failure. Best-effort: log if marking fails, but still return the
|
||||
// original error so the delivery is nacked.
|
||||
if markErr := h.proc.MarkRunFailed(ctx, job.RunID, err.Error()); markErr != nil {
|
||||
h.log.Error("mark landscape run failed", "run_id", job.RunID, "error", markErr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user