Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
coco
Commits
7afb1bd6
Commit
7afb1bd6
authored
Feb 20, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改命令上传
parent
30713105
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app.py
coco/app.py
+0
-1
recorder.py
coco/recorder.py
+4
-3
No files found.
coco/app.py
View file @
7afb1bd6
...
...
@@ -9,7 +9,6 @@ import threading
import
json
import
signal
import
copy
from
collections
import
defaultdict
from
.conf
import
config
from
.sshd
import
SSHServer
...
...
coco/recorder.py
View file @
7afb1bd6
...
...
@@ -170,9 +170,10 @@ class CommandRecorder(object):
if
not
data_set
:
continue
logger
.
debug
(
"Send {} commands to server"
.
format
(
len
(
data_set
)))
ok
=
self
.
storage
.
bulk_save
(
data_set
)
if
not
ok
:
self
.
queue
.
mput
(
data_set
)
for
i
in
range
(
5
):
ok
=
self
.
storage
.
bulk_save
(
data_set
)
if
ok
:
break
thread
=
threading
.
Thread
(
target
=
func
)
thread
.
daemon
=
True
...
...
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