From e837154369ee72c8599b76c9deb879c47e2d4b39 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 31 Jan 2022 14:20:48 +0000 Subject: rescribe: Ensure status isnt overwritten after an abort, when wipe-only preprocessing --- cmd/rescribe/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/rescribe/main.go') diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index cd242af..d4acfc1 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -662,11 +662,11 @@ func processbook(ctx context.Context, training string, tesscmd string, conn Pipe conn.Log("Message received on wipeonly queue, processing", msg.Body) fmt.Printf(" Preprocessing book (wiping only)\n") err = pipeline.ProcessBook(ctx, msg, conn, pipeline.Wipe, wipePattern, conn.WipeQueueId(), conn.OCRPageQueueId()) - fmt.Printf(" OCRing pages ") // this is expected to be added to with dots by OCRPage output resetTimer(stopIfQuiet, quietTime) if err != nil { return fmt.Errorf("Error during wipe: %v", err) } + fmt.Printf(" OCRing pages ") // this is expected to be added to with dots by OCRPage output case <-checkOCRPageQueue: msg, err := conn.CheckQueue(conn.OCRPageQueueId(), QueueTimeoutSecs) checkOCRPageQueue = time.After(PauseBetweenChecks) -- cgit v1.2.1-24-ge1ad