Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asr-benchmarks
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcin Wątroba
asr-benchmarks
Commits
4fc26be2
Commit
4fc26be2
authored
2 years ago
by
Marcin Wątroba
Browse files
Options
Downloads
Patches
Plain Diff
Update asr
parent
94d04b4e
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
new_experiment/queue_base.py
+2
-2
2 additions, 2 deletions
new_experiment/queue_base.py
with
2 additions
and
2 deletions
new_experiment/queue_base.py
+
2
−
2
View file @
4fc26be2
...
...
@@ -8,7 +8,8 @@ from pika.adapters.blocking_connection import BlockingChannel
from
new_experiment.utils.param_util
import
get_param
_RABBIT_URL
=
get_param
(
'
RABBIT_URL
'
,
'
amqps://rabbit_user:kz6m4972OUHFmtUcPOHx4kF3Lj6yw7lo@rabbit-asr-benchmarks.theliver.pl:5671/
'
)
'
amqps://rabbit_user:kz6m4972OUHFmtUcPOHx4kF3Lj6yw7lo
'
'
@rabbit-asr-benchmarks.theliver.pl:5671/?heartbeat=0
'
)
def
ack_message
(
channel
,
delivery_tag
):
...
...
@@ -38,7 +39,6 @@ def process_queue(queue_name: str, process_message: Callable[[bytes], None], pre
threads
.
append
(
t
)
parameters
=
pika
.
URLParameters
(
_RABBIT_URL
)
parameters
.
_heartbeat
=
0
connection
=
pika
.
BlockingConnection
(
parameters
)
channel
=
connection
.
channel
()
channel
.
basic_qos
(
prefetch_count
=
prefetch_count
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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