Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
data_report
/
data-report
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 50c8e0ae
authored
Oct 16, 2026
by
杨卫
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:调整快照数据落表日志等级
1 parent
24231b86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
data-process/common_equity_processor.py
data-process/scheduler.py
data-process/common_equity_processor.py
View file @
50c8e0a
...
@@ -615,7 +615,7 @@ class CommonEquityProcessor:
...
@@ -615,7 +615,7 @@ class CommonEquityProcessor:
'province_name'
:
str
(
r
[
2
]
or
''
)
.
strip
(),
'province_name'
:
str
(
r
[
2
]
or
''
)
.
strip
(),
}
}
eng
.
dispose
()
eng
.
dispose
()
logger
.
info
(
f
"[通用+权益] 门店列表: {len(result)} 个"
)
logger
.
info
(
f
"[通用+权益]
处理的项目组id: {group_id},
门店列表: {len(result)} 个"
)
return
result
return
result
def
_fetch_operate_mode
(
self
,
merchant_ids
):
def
_fetch_operate_mode
(
self
,
merchant_ids
):
...
...
data-process/scheduler.py
View file @
50c8e0a
...
@@ -483,7 +483,7 @@ class CommonEquitySnapshotScheduler:
...
@@ -483,7 +483,7 @@ class CommonEquitySnapshotScheduler:
def
start
(
self
):
def
start
(
self
):
if
self
.
_running
:
if
self
.
_running
:
logger
.
warning
(
f
"[{self.JOB_NAME}] 已在运行中,忽略 start() 调用"
)
logger
.
info
(
f
"[{self.JOB_NAME}] 已在运行中,忽略 start() 调用"
)
return
return
if
not
Config
.
SCHEDULER_ENABLED
:
if
not
Config
.
SCHEDULER_ENABLED
:
...
@@ -560,14 +560,14 @@ class CommonEquitySnapshotScheduler:
...
@@ -560,14 +560,14 @@ class CommonEquitySnapshotScheduler:
def
_execute_refresh
(
self
):
def
_execute_refresh
(
self
):
if
not
self
.
_lock
.
acquire
(
blocking
=
False
):
if
not
self
.
_lock
.
acquire
(
blocking
=
False
):
logger
.
debug
(
f
"[{self.JOB_NAME}] 上一轮处理尚未完成,跳过本轮"
)
logger
.
info
(
f
"[{self.JOB_NAME}] 上一轮处理尚未完成,跳过本轮"
)
return
return
try
:
try
:
# 需求:十分钟执行一次,判断当前是否是每个月一号;不是则直接跳过
# 需求:十分钟执行一次,判断当前是否是每个月一号;不是则直接跳过
if
datetime
.
now
()
.
day
!=
1
:
if
datetime
.
now
()
.
day
!=
1
:
self
.
_last_run_result
=
{
'skipped'
:
True
,
'reason'
:
'not_first_day'
}
self
.
_last_run_result
=
{
'skipped'
:
True
,
'reason'
:
'not_first_day'
}
logger
.
debug
(
f
"[{self.JOB_NAME}] 今天不是 1 号,跳过快照计算"
)
logger
.
info
(
f
"[{self.JOB_NAME}] 今天不是 1 号,跳过快照计算"
)
return
return
self
.
_is_processing
=
True
self
.
_is_processing
=
True
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment