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
7a75873a
Commit
7a75873a
authored
Oct 18, 2019
by
吴升宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wsy3' into 'test'
remove celery once See merge request
!542
parents
d58fe1a1
b7d7ac8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
auto_request.py
vest/request/auto_request.py
+10
-5
No files found.
vest/request/auto_request.py
View file @
7a75873a
...
@@ -115,7 +115,8 @@ def logins(user_id):
...
@@ -115,7 +115,8 @@ def logins(user_id):
return
None
return
None
@shared_task
(
retry_kwargs
=
{
'max_retries'
:
0
},
base
=
QueueOnce
,
once
=
{
'graceful'
:
True
,
'unlock_before_run'
:
True
})
# @shared_task(retry_kwargs={'max_retries': 0}, base=QueueOnce, once={'graceful': True, 'unlock_before_run': True})
@shared_task
(
retry_kwargs
=
{
'max_retries'
:
0
})
def
click
(
cookies_get
,
id
):
def
click
(
cookies_get
,
id
):
# 点赞
# 点赞
try
:
try
:
...
@@ -149,7 +150,8 @@ def click(cookies_get, id):
...
@@ -149,7 +150,8 @@ def click(cookies_get, id):
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
@shared_task
(
retry_kwargs
=
{
'max_retries'
:
0
},
base
=
QueueOnce
,
once
=
{
'graceful'
:
True
,
'unlock_before_run'
:
True
})
# @shared_task(retry_kwargs={'max_retries': 0}, base=QueueOnce, once={'graceful': True, 'unlock_before_run': True})
@shared_task
(
retry_kwargs
=
{
'max_retries'
:
0
})
def
reply
(
cookies_get
,
id
,
content
):
def
reply
(
cookies_get
,
id
,
content
):
try
:
try
:
post_dict
=
{
post_dict
=
{
...
@@ -273,7 +275,8 @@ def get_comments():
...
@@ -273,7 +275,8 @@ def get_comments():
return
None
return
None
@shared_task
(
retry_kwargs
=
{
'max_retries'
:
0
},
base
=
QueueOnce
,
once
=
{
'graceful'
:
True
,
'unlock_before_run'
:
True
})
# @shared_task(retry_kwargs={'max_retries': 0}, base=QueueOnce, once={'graceful': True, 'unlock_before_run': True})
@shared_task
(
retry_kwargs
=
{
'max_retries'
:
0
})
def
follow
(
cookies_get
,
id
):
def
follow
(
cookies_get
,
id
):
try
:
try
:
post_dict
=
{
post_dict
=
{
...
@@ -439,7 +442,8 @@ def set_reply_to_redis():
...
@@ -439,7 +442,8 @@ def set_reply_to_redis():
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
@shared_task
(
retry_kwargs
=
{
'max_retries'
:
0
},
base
=
QueueOnce
,
once
=
{
'graceful'
:
True
,
'unlock_before_run'
:
True
})
# @shared_task(retry_kwargs={'max_retries': 0}, base=QueueOnce, once={'graceful': True, 'unlock_before_run': True})
@shared_task
(
retry_kwargs
=
{
'max_retries'
:
0
})
def
reply2
(
cookies_get
,
id
,
content
,
replied_id
):
def
reply2
(
cookies_get
,
id
,
content
,
replied_id
):
try
:
try
:
post_dict
=
{
post_dict
=
{
...
@@ -460,7 +464,8 @@ def reply2(cookies_get, id, content, replied_id):
...
@@ -460,7 +464,8 @@ def reply2(cookies_get, id, content, replied_id):
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
@shared_task
(
retry_kwargs
=
{
'max_retries'
:
0
},
base
=
QueueOnce
,
once
=
{
'graceful'
:
True
,
'unlock_before_run'
:
True
})
# @shared_task(retry_kwargs={'max_retries': 0}, base=QueueOnce, once={'graceful': True, 'unlock_before_run': True})
@shared_task
(
retry_kwargs
=
{
'max_retries'
:
0
})
def
pictorial_reply
(
cookies_get
,
id
,
content
):
def
pictorial_reply
(
cookies_get
,
id
,
content
):
try
:
try
:
post_dict
=
{
post_dict
=
{
...
...
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