Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gwcelery
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
emfollow
gwcelery
Commits
014fdcac
Commit
014fdcac
authored
3 years ago
by
Geoffrey Mo
Committed by
Cody Messick
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Give kafka its own worker and add its stop
parent
ac9abc77
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gwcelery/data/gwcelery.sub
+4
-0
4 additions, 0 deletions
gwcelery/data/gwcelery.sub
gwcelery/kafka/bootsteps.py
+1
-0
1 addition, 0 deletions
gwcelery/kafka/bootsteps.py
with
5 additions
and
0 deletions
gwcelery/data/gwcelery.sub
+
4
−
0
View file @
014fdcac
...
...
@@ -26,6 +26,10 @@ arguments = "gwcelery worker -l info -n gwcelery-worker@%h -f %n.log -Q celery -
description = gwcelery-worker
queue
arguments = "gwcelery worker -l info -n gwcelery-kafka-worker@%h -f %n.log -Q kafka --kafka -c 1 --prefetch-multiplier 1"
description = gwcelery-kafka-worker
queue
arguments = "gwcelery worker -l info -n gwcelery-exttrig-worker@%h -f %n.log -Q exttrig -c 1"
description = gwcelery-exttrig-worker
queue
...
...
This diff is collapsed.
Click to expand it.
gwcelery/kafka/bootsteps.py
+
1
−
0
View file @
014fdcac
...
...
@@ -27,6 +27,7 @@ class KafkaBootStep(bootsteps.ConsumerStep):
log
.
info
(
f
'
Starting
{
self
.
name
}
, topic:
{
self
.
topic_url
}
'
)
def
stop
(
self
,
parent
):
super
().
stop
(
parent
)
log
.
info
(
f
'
Closing connection to topic:
{
self
.
topic_url
}
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment