chore(apc): remove apc processing delay
This commit is contained in:
parent
875d79bf01
commit
7e756985ce
@ -14,7 +14,7 @@ import Jobs.Queue
|
||||
|
||||
-- import Jobs.Handler.Intervals.Utils
|
||||
import qualified Data.Text as Text
|
||||
import UnliftIO.Concurrent (threadDelay)
|
||||
-- import UnliftIO.Concurrent (threadDelay)
|
||||
|
||||
-- import Database.Persist.Sql (deleteWhereCount)
|
||||
-- import Database.Esqueleto.Experimental ((:&)(..))
|
||||
@ -25,15 +25,15 @@ import UnliftIO.Concurrent (threadDelay)
|
||||
|
||||
|
||||
jobPrintAckChunkSize :: Int
|
||||
jobPrintAckChunkSize = 32
|
||||
jobPrintAckChunkSize = 64
|
||||
|
||||
-- needed, since JobPrintAck cannot requeue itself due to JobNoQueueSame (and having no parameters)
|
||||
dispatchJobPrintAckAgain :: JobHandler UniWorX
|
||||
dispatchJobPrintAckAgain = JobHandlerException act
|
||||
where
|
||||
act = do
|
||||
liftIO $ threadDelay 3e6 -- wait 3s before continuing
|
||||
void $ queueJob JobPrintAck
|
||||
act = void $ queueJob JobPrintAck
|
||||
-- liftIO $ threadDelay 3e6 -- wait 3s before continuing UPDATE: no wait needed
|
||||
|
||||
|
||||
dispatchJobPrintAck :: JobHandler UniWorX
|
||||
dispatchJobPrintAck = JobHandlerException act
|
||||
|
||||
Loading…
Reference in New Issue
Block a user