Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workers to report #78

Closed
4 tasks done
Tracked by #46
aatmanvaidya opened this issue Mar 6, 2024 · 1 comment · Fixed by tattle-made/feluda#131
Closed
4 tasks done
Tracked by #46

Update workers to report #78

aatmanvaidya opened this issue Mar 6, 2024 · 1 comment · Fixed by tattle-made/feluda#131
Assignees

Comments

@aatmanvaidya
Copy link
Contributor

aatmanvaidya commented Mar 6, 2024

  • create a curl command to write to rabbitMQ queue
  • update the queue names
  • update workers to report to the report queue after processing
  • add tail -f command to dockerfile
@aatmanvaidya
Copy link
Contributor Author

Add a message to the queue

curl -u admin:Admin123 -H "content-type:application/json" -X POST -d '{"properties":{"delivery_mode":2},"routing_key":"audio-index-queue","payload":"{\"id\":\"12345\",\"path\":\"https://raw.githubusercontent.com/tattle-made/feluda/main/src/core/operators/sample_data/audio.wav\"}","payload_encoding":"string"}' http://localhost:15672/api/exchanges/%2f/amq.default/publish

check the number of messages in the queue

curl -u admin:Admin123 -X GET http://localhost:15672/api/queues/%2f/audio-index-queue | grep -o '"messages":[0-9]*' | awk -F':' '{print $2}'

@aatmanvaidya aatmanvaidya linked a pull request Mar 6, 2024 that will close this issue
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 a pull request may close this issue.

1 participant