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

doubt #81

Open
fabiotheo opened this issue May 6, 2019 · 0 comments
Open

doubt #81

fabiotheo opened this issue May 6, 2019 · 0 comments

Comments

@fabiotheo
Copy link

in this case, how i use 'queues_details' for my script?

import asyncio
from panoramisk import Manager
from pprint import pprint

@asyncio.coroutine
def queue_status():
manager = Manager(loop=asyncio.get_event_loop(),
host='127.0.0.1', port=5039,
username='username', secret='mysecret')
yield from manager.connect()
queues_details = yield from manager.send_action(
{'Action': 'QueueStatus', 'Queue': 'queue_name'})
manager.close()
pprint(queues_details)

def main():
loop = asyncio.get_event_loop()
loop.run_until_complete(queue_status())
loop.close()

if name == 'main':
main()

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

No branches or pull requests

1 participant