Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
tas_monitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
839edf84
authored
Jan 14, 2020
by
lichenggang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update cp
parent
0d8ab262
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
crawler_process.py
crawler_process.py
View file @
839edf84
...
...
@@ -76,7 +76,7 @@ def get_crawler_process_info():
info_dict
=
dict
()
info_dict
[
'pid'
]
=
pid
.
strip
()
info_dict
[
'task_code'
]
=
info
[
'cmdline'
][
'-r'
]
info_dict
[
'platform'
]
=
info
[
'cmdline'
][
'-mq'
]
.
split
(
"_"
)[
0
]
info_dict
[
'platform'
]
=
info
[
'cmdline'
][
'-mq'
]
.
split
(
"_"
)[
0
]
if
info
[
'cmdline'
]
.
get
(
'-mq'
,
''
)
else
'data_rank'
info_dict
[
'concurrency'
]
=
int
(
info
[
'cmdline'
][
'-c'
])
info_dict
[
'queue'
]
=
info
[
'cmdline'
][
'-mq'
]
if
'-mq'
in
info
[
'cmdline'
]
else
''
unic
=
''
.
join
([
str
(
info
[
'create_time'
]),
info_dict
[
'task_code'
],
str
(
info_dict
[
'concurrency'
])])
.
encode
()
...
...
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