Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
doudian-py
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiquan
doudian-py
Commits
6f39c8d8
Commit
6f39c8d8
authored
Jul 25, 2025
by
baiquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(shop): 调整任务日志输出位置
- 将任务日志输出从函数开头调整到判断任务为空之后 - 优化了日志输出的可读性和时机,确保仅在存在任务时才输出任务信息
parent
e0f3e9f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
shop.py
+1
-1
No files found.
shop.py
View file @
6f39c8d8
...
...
@@ -186,13 +186,13 @@ async def run(task_type):
except
Exception
as
e
:
logger
.
error
(
f
'获取任务失败 --> {e}'
)
return
logger
.
info
(
json
.
dumps
(
tasks
))
tasks
=
tasks
.
get
(
'data'
,
tasks
)
if
type
(
tasks
)
==
dict
:
tasks
=
[
tasks
]
if
not
tasks
:
logger
.
debug
(
'没有任务'
)
return
logger
.
info
(
json
.
dumps
(
tasks
))
# 使用线程池处理所有任务
with
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
OUTER_MAX_WORKERS
)
as
outer_executor
:
...
...
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