Skip to content

Commit

Permalink
修复定时任务执行测试计划的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wuranxu committed Jul 9, 2022
1 parent 7ea44d7 commit ba2a7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def lock(key):
"""

def decorator(func):
if asyncio.iscoroutine(func):
if asyncio.iscoroutinefunction(func):
@functools.wraps(func)
async def wrapper(*args, **kwargs):
try:
Expand Down

0 comments on commit ba2a7a8

Please sign in to comment.