Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Amazon-Selection-Data
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abel_cjy
Amazon-Selection-Data
Commits
5c46ae1e
Commit
5c46ae1e
authored
Aug 24, 2026
by
chenyuanjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
86b1bbf4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
templates.py
Pyspark_job/utils/templates.py
+0
-3
No files found.
Pyspark_job/utils/templates.py
View file @
5c46ae1e
...
@@ -348,9 +348,6 @@ class Templates(object):
...
@@ -348,9 +348,6 @@ class Templates(object):
def
_do_stop
():
def
_do_stop
():
try
:
try
:
if
self
.
query
is
not
None
:
if
self
.
query
is
not
None
:
# 先把调用时刻Kafka里已经存在但还没被消费的积压全部跑完,再停,
# 避免爬虫刚标记完成、但还有一截尾巴数据没被下一次触发扫到就被stop掉
self
.
query
.
processAllAvailable
()
self
.
query
.
stop
()
# 在子线程中调用,避免 foreachBatch 回调内死锁
self
.
query
.
stop
()
# 在子线程中调用,避免 foreachBatch 回调内死锁
if
self
.
spark
is
not
None
:
if
self
.
spark
is
not
None
:
self
.
spark
.
stop
()
self
.
spark
.
stop
()
...
...
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