Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asapo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
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
Joao Alvim Oliveira Dias De Almeida
asapo
Commits
10704b13
Commit
10704b13
authored
10 months ago
by
Tim Schoof
Committed by
Diana Rueda
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Include suggestions in produce.py for callback and last id
parent
7c2ab643
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/site/examples/python/produce.py
+3
-3
3 additions, 3 deletions
docs/site/examples/python/produce.py
with
3 additions
and
3 deletions
docs/site/examples/python/produce.py
+
3
−
3
View file @
10704b13
...
...
@@ -47,8 +47,8 @@ producer.send(
id
=
1
,
# message number. Should be unique and ordered.
exposed_path
=
"
processed/test_file
"
,
# name of the file. Should be unique, or it will be overwritten
data
=
b
"
hello
"
,
# binary data
callback
=
callback
,
)
# callback
callback
=
callback
,
# this is called after the asynchronous send operation finishes
)
# send snippet_end
# send data in loop
...
...
@@ -63,6 +63,6 @@ producer.wait_requests_finished(
# you may want to mark the stream as finished
producer
.
send_stream_finished_flag
(
stream
=
"
default
"
,
# name of the stream. If you didn't specify the stream in 'send', it would be 'default'
id
=
1
,
last_
id
=
1
,
)
# the number of the last message in the stream
# finish snippet_end
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