From 91fa199b63c0dedd3445bd3d1ec94f0634de9ce1 Mon Sep 17 00:00:00 2001 From: Fyodor Soikin Date: Tue, 10 Feb 2026 15:39:50 -0500 Subject: [PATCH 1/2] Do not request the same log line from Registry on every iteration --- src/Spago/Registry.purs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Spago/Registry.purs b/src/Spago/Registry.purs index 6888f1c8b..2ede68d87 100644 --- a/src/Spago/Registry.purs +++ b/src/Spago/Registry.purs @@ -21,7 +21,7 @@ import Data.Array as Array import Data.Array.NonEmpty as NonEmptyArray import Data.Codec.JSON as CJ import Data.DateTime (DateTime) -import Data.DateTime (diff) as DateTime +import Data.DateTime (adjust, diff) as DateTime import Data.Formatter.DateTime (format) as DateTime import Data.Map as Map import Data.Set as Set @@ -468,7 +468,7 @@ waitForJobFinish { jobId, jobType } = go Nothing let url = baseApi <> Duplex.print V1.routes ( V1.Job jobId - { since: lastTimestamp + { since: lastTimestamp >>= DateTime.adjust (Milliseconds 1.0) , level: case logOptions.verbosity of LogVerbose -> Just V1.Debug _ -> Just V1.Info From 036e0ff92e883641bbb831f65a0d650043cf2f68 Mon Sep 17 00:00:00 2001 From: Fyodor Soikin Date: Tue, 10 Feb 2026 15:42:46 -0500 Subject: [PATCH 2/2] Changelog too --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index adae4d835..e5a9c75b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Bugfixes: * Preserve TTY properties for child processes in `spago run` (#1341) +* Do not repeatedly request the same log line from the Registry server (#1381) ## [1.0.3] - 2026-02-01