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
d159ed58
Verified
Commit
d159ed58
authored
Aug 29, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[review] remove traceStack call
parent
eb095af2
Pipeline
#6553
failed with stages
in 5 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
Worker.hs
src/Async/Worker.hs
+1
-4
No files found.
src/Async/Worker.hs
View file @
d159ed58
...
@@ -41,7 +41,6 @@ import Control.Concurrent.STM (atomically)
...
@@ -41,7 +41,6 @@ import Control.Concurrent.STM (atomically)
import
Control.Concurrent.STM.TVar
(
readTVarIO
,
newTVarIO
,
writeTVar
)
import
Control.Concurrent.STM.TVar
(
readTVarIO
,
newTVarIO
,
writeTVar
)
import
Control.Exception.Safe
(
catches
,
Handler
(
..
),
throwIO
,
SomeException
,
Exception
)
import
Control.Exception.Safe
(
catches
,
Handler
(
..
),
throwIO
,
SomeException
,
Exception
)
import
Control.Monad
(
forever
,
void
,
when
)
import
Control.Monad
(
forever
,
void
,
when
)
import
Debug.Trace
(
traceStack
)
import
System.Timeout
qualified
as
Timeout
import
System.Timeout
qualified
as
Timeout
...
@@ -223,9 +222,7 @@ handleJobError _state@(State { .. }) brokerMessage = do
...
@@ -223,9 +222,7 @@ handleJobError _state@(State { .. }) brokerMessage = do
void
$
sendJob
broker
queueName
(
job
{
metadata
=
mdata
{
readCount
=
readCt
+
1
}
})
void
$
sendJob
broker
queueName
(
job
{
metadata
=
mdata
{
readCount
=
readCt
+
1
}
})
handleUnknownError
::
State
b
a
->
SomeException
->
IO
()
handleUnknownError
::
State
b
a
->
SomeException
->
IO
()
handleUnknownError
state
err
=
do
handleUnknownError
state
err
=
putStrLn
$
formatStr
state
$
"unknown error: "
<>
show
err
let
_
=
traceStack
(
"unknown error: "
<>
show
err
)
putStrLn
$
formatStr
state
$
"unknown error: "
<>
show
err
sendJob
::
(
HasWorkerBroker
b
a
)
=>
Broker
b
(
Job
a
)
->
Queue
->
Job
a
->
IO
(
MessageId
b
)
sendJob
::
(
HasWorkerBroker
b
a
)
=>
Broker
b
(
Job
a
)
->
Queue
->
Job
a
->
IO
(
MessageId
b
)
sendJob
broker
queueName
job
=
do
sendJob
broker
queueName
job
=
do
...
...
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