Skip to content

Add image processing demo#21

Open
HailayGG wants to merge 3 commits into
cloudamqp:mainfrom
HailayGG:imgae-processing-demo
Open

Add image processing demo#21
HailayGG wants to merge 3 commits into
cloudamqp:mainfrom
HailayGG:imgae-processing-demo

Conversation

@HailayGG

Copy link
Copy Markdown

The demo shows how LavinMQ can be used for background job processing by:
publishing image processing tasks
Consuming tasks with worker services
processing images asynchronously

Comment thread background_job_processing_demo/__pycache__/app.cpython-314.pyc Outdated
properties=pika.BasicProperties(delivery_mode=2),
)
print("Message published. Sleeping for 10 seconds...")
time.sleep(10)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to sleep here? e.g. if the demo should show "backgground jobs" it should return immediately, if we want to show the generated images we should add a callback once it's done.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed the time.sleep(10) for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants