We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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()
The text was updated successfully, but these errors were encountered: