Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_strategy_cvr
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
rank
gm_strategy_cvr
Commits
a522c51d
Commit
a522c51d
authored
Aug 17, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
1fc0d16e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
ctcvr_offline.sh
ctcvr_offline.sh
+4
-4
main_portrait.py
src/main_portrait.py
+0
-3
No files found.
ctcvr_offline.sh
View file @
a522c51d
...
@@ -18,22 +18,22 @@
...
@@ -18,22 +18,22 @@
# nohup /home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py f > ~/ctcvr_f.log &
# nohup /home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py f > ~/ctcvr_f.log &
# fi
# fi
if
!
ps aux |
grep
src/main_portrait.py
\
8 |
grep
-v
grep
if
!
ps aux |
grep
src/main_portrait.py
\
8
\
f
|
grep
-v
grep
then
then
nohup
/home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py 8 f
>
~/ctcvr_8.log &
nohup
/home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py 8 f
>
~/ctcvr_8.log &
fi
fi
if
!
ps aux |
grep
src/main_portrait.py
\
9 |
grep
-v
grep
if
!
ps aux |
grep
src/main_portrait.py
\
9
\
f
|
grep
-v
grep
then
then
nohup
/home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py 9 f
>
~/ctcvr_9.log &
nohup
/home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py 9 f
>
~/ctcvr_9.log &
fi
fi
if
!
ps aux |
grep
src/main_portrait.py
\
a |
grep
-v
grep
if
!
ps aux |
grep
src/main_portrait.py
\
a
\
f
|
grep
-v
grep
then
then
nohup
/home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py a f
>
~/ctcvr_a.log &
nohup
/home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py a f
>
~/ctcvr_a.log &
fi
fi
if
!
ps aux |
grep
src/main_portrait.py
\
b |
grep
-v
grep
if
!
ps aux |
grep
src/main_portrait.py
\
b
\
f
|
grep
-v
grep
then
then
nohup
/home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py b f
>
~/ctcvr_b.log &
nohup
/home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py b f
>
~/ctcvr_b.log &
fi
fi
src/main_portrait.py
View file @
a522c51d
...
@@ -45,13 +45,10 @@ def user_portrait_scan_info(device_dict, diary_dict, tractate_dict, diary_predic
...
@@ -45,13 +45,10 @@ def user_portrait_scan_info(device_dict, diary_dict, tractate_dict, diary_predic
def
user_portrait_increment_scan_info
(
device_dict
,
diary_dict
,
tractate_dict
,
diary_predict_fn
,
tractate_predict_fn
,
tail_number
):
def
user_portrait_increment_scan_info
(
device_dict
,
diary_dict
,
tractate_dict
,
diary_predict_fn
,
tractate_predict_fn
,
tail_number
):
try
:
try
:
round
=
0
all_count
=
0
all_count
=
0
keys
=
"doris:user_portrait:tag3:device_id:*"
keys
=
"doris:user_portrait:tag3:device_id:*"
cur
,
results
=
redis_client2
.
scan
(
0
,
keys
,
3000
)
cur
,
results
=
redis_client2
.
scan
(
0
,
keys
,
3000
)
while
cur
!=
0
:
while
cur
!=
0
:
round
+=
1
print
(
"round: "
+
str
(
round
))
cur
,
results
=
redis_client2
.
scan
(
cur
,
keys
,
3000
)
cur
,
results
=
redis_client2
.
scan
(
cur
,
keys
,
3000
)
for
key
in
results
:
for
key
in
results
:
key
=
str
(
key
,
"utf-8"
)
key
=
str
(
key
,
"utf-8"
)
...
...
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