Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
alpha
physical
Commits
66365eb1
Commit
66365eb1
authored
Apr 25, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
133098db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tasks.py
injection/data_sync/tasks.py
+3
-2
No files found.
injection/data_sync/tasks.py
View file @
66365eb1
...
@@ -45,7 +45,7 @@ def write_to_es(es_type, pk_list, use_batch_query_set=False):
...
@@ -45,7 +45,7 @@ def write_to_es(es_type, pk_list, use_batch_query_set=False):
if
es_type
==
'topic'
:
if
es_type
==
'topic'
:
auto_click
(
pk_list
)
auto_click
(
pk_list
)
#
auto_reply(pk_list)
auto_reply
(
pk_list
)
except
:
except
:
...
@@ -109,6 +109,7 @@ def sync_user_similar_score():
...
@@ -109,6 +109,7 @@ def sync_user_similar_score():
except
:
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
@shared_task
@shared_task
def
auto_majia_effect
(
pk_list
):
def
auto_majia_effect
(
pk_list
):
logging
.
info
(
"get -----auto_majia_effect----"
)
logging
.
info
(
"get -----auto_majia_effect----"
)
...
@@ -139,7 +140,7 @@ def auto_click(pk_list):
...
@@ -139,7 +140,7 @@ def auto_click(pk_list):
def
fun_timer
():
def
fun_timer
():
cookies
=
login
()
cookies
=
login
()
if
cookies
:
if
cookies
:
logging
.
info
(
"get topic_id_list:
%
s"
%
topic_id_list
)
logging
.
info
(
"get topic_id_list:
%
s"
%
topic_id_list
)
click
(
cookies
,
topic_id_list
[
0
])
click
(
cookies
,
topic_id_list
[
0
])
global
timer
global
timer
...
...
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