Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mock-cheops
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
Container 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
chephren
mock-cheops
Commits
8a255df1
Unverified
Commit
8a255df1
authored
1 year ago
by
REIG Julien
Browse files
Options
Downloads
Patches
Plain Diff
fix empty queue
parent
b36f4a59
Branches
Branches containing commit
No related tags found
1 merge request
!16
Node knowledge
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/queue_utils.py
+4
-0
4 additions, 0 deletions
utils/queue_utils.py
with
4 additions
and
0 deletions
utils/queue_utils.py
+
4
−
0
View file @
8a255df1
...
@@ -15,6 +15,8 @@ def fetch_insert_resource_queue(intern_node_address: str):
...
@@ -15,6 +15,8 @@ def fetch_insert_resource_queue(intern_node_address: str):
Fetches the resources from the queue and inserts them into the database
Fetches the resources from the queue and inserts them into the database
"""
"""
resources
=
get_resource_queue
(
intern_node_address
,
True
)
resources
=
get_resource_queue
(
intern_node_address
,
True
)
if
(
resources
is
None
):
return
for
resource
in
resources
:
for
resource
in
resources
:
insert_resource
(
resource
)
insert_resource
(
resource
)
...
@@ -23,6 +25,8 @@ def fetch_insert_command_queue(intern_node_address: str):
...
@@ -23,6 +25,8 @@ def fetch_insert_command_queue(intern_node_address: str):
Fetches the commands from the queue and inserts them into the database
Fetches the commands from the queue and inserts them into the database
"""
"""
commands
=
get_command_queue
(
intern_node_address
,
True
)
commands
=
get_command_queue
(
intern_node_address
,
True
)
if
(
commands
is
None
):
return
for
command
in
commands
:
for
command
in
commands
:
resource_id
=
command
[
'
resource_id
'
]
resource_id
=
command
[
'
resource_id
'
]
cm
=
command
[
'
command
'
]
cm
=
command
[
'
command
'
]
...
...
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