Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-bee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-bee
Commits
912e4e33
Verified
Commit
912e4e33
authored
Oct 30, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[worker] [BUG] delete message after it is resent
parent
307f6760
Pipeline
#6916
failed with stages
in 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
Worker.hs
src/Async/Worker.hs
+1
-0
No files found.
src/Async/Worker.hs
View file @
912e4e33
...
...
@@ -94,6 +94,7 @@ runSingle' state@(State { .. }) = do
when
(
resendWhenWorkerKilled
mdata
)
$
do
-- putStrLn $ formatStr state $ "resending job: " <> show job
void
$
sendJob
broker
queueName
(
job
{
metadata
=
mdata
{
readCount
=
readCount
mdata
+
1
}
})
void
$
deleteMessage
broker
queueName
$
messageId
brokerMessage
-- size <- getQueueSize broker queueName
-- putStrLn $ formatStr state $ "queue size: " <> show size
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment