Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
hive
clive
Commits
17958066
Commit
17958066
authored
1 month ago
by
Marcin Sobczyk
Browse files
Options
Downloads
Patches
Plain Diff
Ensure update_alarms_data_asap_on_newest_node does not work on cached node data
parent
7c252c85
No related branches found
No related tags found
2 merge requests
!600
v1.27.5.21 Release
,
!588
Suppress exceptions on updating node/alarm data canceled
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clive/__private/ui/app.py
+4
-2
4 additions, 2 deletions
clive/__private/ui/app.py
with
4 additions
and
2 deletions
clive/__private/ui/app.py
+
4
−
2
View file @
17958066
...
...
@@ -244,8 +244,10 @@ class Clive(App[int]):
def
update_alarms_data_asap_on_newest_node_data
(
self
)
->
Worker
[
None
]:
"""
Update alarms on the newest possible node data.
"""
self
.
update_data_from_node
()
return
self
.
update_alarms_data
()
async
def
update_alarms_data_on_newest_node_data
()
->
None
:
await
self
.
update_data_from_node
().
wait
()
await
self
.
update_alarms_data
().
wait
()
return
self
.
run_worker
(
update_alarms_data_on_newest_node_data
())
@work
(
name
=
"
alarms data update worker
"
,
group
=
"
alarms_data
"
,
exclusive
=
True
)
async
def
update_alarms_data
(
self
)
->
None
:
...
...
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