Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inventory-provider
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
dashboardv3
inventory-provider
Commits
36b5f906
Commit
36b5f906
authored
4 years ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
clear joblog records from current db before refresh
parent
5b89b713
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
inventory_provider/tasks/worker.py
+3
-1
3 additions, 1 deletion
inventory_provider/tasks/worker.py
with
3 additions
and
1 deletion
inventory_provider/tasks/worker.py
+
3
−
1
View file @
36b5f906
...
...
@@ -14,7 +14,7 @@ from inventory_provider.tasks.app import app
from
inventory_provider.tasks.common
\
import
get_next_redis
,
get_current_redis
,
\
latch_db
,
get_latch
,
set_latch
,
update_latch_status
from
inventory_provider.tasks
import
data
from
inventory_provider.tasks
import
data
,
monitor
from
inventory_provider
import
config
from
inventory_provider
import
environment
from
inventory_provider.db
import
db
,
opsdb
...
...
@@ -547,7 +547,9 @@ def launch_refresh_cache_all(config):
:param config: config structure as defined in config.py
:return:
"""
_erase_next_db
(
config
)
monitor
.
clear_joblog
(
get_current_redis
(
config
))
update_latch_status
(
config
,
pending
=
True
)
...
...
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