Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
8ec96ad1
Unverified
Commit
8ec96ad1
authored
1 year ago
by
CyberRex
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(backend): ジョブキュー再試行時のタイミングずれによるエラーを抑制 (#11035)
* fix(backend): ジョブキュー再試行時のタイミングずれによるエラーを抑制 * fix lint
parent
4f876c9e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/backend/src/server/api/endpoints/admin/queue/promote.ts
+22
-2
22 additions, 2 deletions
...s/backend/src/server/api/endpoints/admin/queue/promote.ts
with
22 additions
and
2 deletions
packages/backend/src/server/api/endpoints/admin/queue/promote.ts
+
22
−
2
View file @
8ec96ad1
...
...
@@ -33,7 +33,17 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
delayedQueues
=
await
this
.
queueService
.
deliverQueue
.
getDelayed
();
for
(
let
queueIndex
=
0
;
queueIndex
<
delayedQueues
.
length
;
queueIndex
++
)
{
const
queue
=
delayedQueues
[
queueIndex
];
await
queue
.
promote
();
try
{
await
queue
.
promote
();
}
catch
(
e
)
{
if
(
e
instanceof
Error
)
{
if
(
e
.
message
.
indexOf
(
'
not in a delayed state
'
)
!==
-
1
)
{
throw
e
;
}
}
else
{
throw
e
;
}
}
}
break
;
...
...
@@ -41,7 +51,17 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
delayedQueues
=
await
this
.
queueService
.
inboxQueue
.
getDelayed
();
for
(
let
queueIndex
=
0
;
queueIndex
<
delayedQueues
.
length
;
queueIndex
++
)
{
const
queue
=
delayedQueues
[
queueIndex
];
await
queue
.
promote
();
try
{
await
queue
.
promote
();
}
catch
(
e
)
{
if
(
e
instanceof
Error
)
{
if
(
e
.
message
.
indexOf
(
'
not in a delayed state
'
)
!==
-
1
)
{
throw
e
;
}
}
else
{
throw
e
;
}
}
}
break
;
}
...
...
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
register
or
sign in
to comment