Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.toolbox
Commits
8fb20de4
Commit
8fb20de4
authored
Feb 20, 2018
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitot.collect: do no t try to update the database, set connect timeout
parent
bfd1d5ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
slapos/monitor/collect.py
slapos/monitor/collect.py
+3
-1
No files found.
slapos/monitor/collect.py
View file @
8fb20de4
...
...
@@ -69,7 +69,9 @@ class ResourceCollect:
assert
os
.
path
.
exists
(
db_path
)
if
db_path
.
endswith
(
"collector.db"
):
db_path
=
db_path
[:
-
len
(
"collector.db"
)]
self
.
db
=
Database
(
db_path
,
create
=
False
)
# If the database is locked, wait until 15 seconds
# Do not try to created or update tables, access will be refused
self
.
db
=
Database
(
db_path
,
create
=
False
,
timeout
=
15
)
self
.
consumption_utils
=
ConsumptionReportBase
(
self
.
db
)
def
has_table
(
self
,
name
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment