Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pelikán
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Pelikán
Commits
ace1ab2f
Verified
Commit
ace1ab2f
authored
Jun 2, 2021
by
jan.hamal.dvorak
Browse files
Options
Downloads
Patches
Plain Diff
Do not confuse queue.id with history.id in logs
Signed-off-by:
Jan Hamal Dvořák
<
mordae@anilinux.org
>
parent
d236cd53
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Pelican/Backend/Sender.hs
+3
-9
3 additions, 9 deletions
src/Pelican/Backend/Sender.hs
with
3 additions
and
9 deletions
src/Pelican/Backend/Sender.hs
+
3
−
9
View file @
ace1ab2f
...
...
@@ -99,9 +99,7 @@ where
handleRejected
::
Pg
.
Connection
->
Int64
->
Text
->
Backend
()
handleRejected
conn
qid
reason
=
do
logDebug
tag
[
"Gateway rejected "
,
toLogStr
qid
,
", reason: "
,
toLogStr
(
show
reason
)
]
logDebug
tag
[
"Rejected, reason: "
,
toLogStr
(
show
reason
)]
liftIO
do
void
$
Pg
.
execute
conn
[
sql
|
update history h
...
...
@@ -116,9 +114,7 @@ where
handleRetry
::
Pg
.
Connection
->
Int64
->
Text
->
Backend
()
handleRetry
conn
qid
reason
=
do
logDebug
tag
[
"Gateway suggested retry of "
,
toLogStr
qid
,
", reason: "
,
toLogStr
(
show
reason
)
]
logDebug
tag
[
"Retry, reason: "
,
toLogStr
(
show
reason
)]
liftIO
do
void
$
Pg
.
execute
conn
[
sql
|
update history h set reason = ?
...
...
@@ -131,9 +127,7 @@ where
handleAccepted
conn
qid
parts
=
do
let
parts'
=
fromList
parts
::
Vector
Int64
logDebug
tag
[
"Gateway accepted "
,
toLogStr
qid
,
", parts: "
,
toLogStr
(
show
parts
)
]
logDebug
tag
[
"Accepted, parts: "
,
toLogStr
(
show
parts
)]
liftIO
do
void
$
Pg
.
execute
conn
[
sql
|
update history h
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment