from ..app import reloader
test_reloader.py:7: in <module>
from ..app import reloader
../app/reloader.py:9: in <module>
from app import models
E ModuleNotFoundError: No module named 'app'
Transactions: 315 hits
Availability: 100.00 %
Elapsed time: 14.14 secs
Data transferred: 0.00 MB
Response time: 1.06 secs
Transaction rate: 22.28 trans/sec
Throughput: 0.00 MB/sec
Concurrency: 23.64
Successful transactions: 315
Failed transactions: 0
Longest transaction: 3.87
Shortest transaction: 0.01
Transactions: 2042 hits
Availability: 100.00 %
Elapsed time: 14.62 secs
Data transferred: 0.00 MB
Response time: 0.18 secs
Transaction rate: 139.67 trans/sec
Throughput: 0.00 MB/sec
Concurrency: 24.83
Successful transactions: 2042
Failed transactions: 0
Longest transaction: 0.57
Shortest transaction: 0.02
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/lib/python3.7/asyncio/selector_events.py", line 501, in _sock_connect_cb
fut.set_result(None)
asyncio.base_futures.InvalidStateError: invalid state
ERROR:asyncio:Exception in callback BaseSelectorEventLoop._sock_connect_cb(<Future finished result=None>, <socket.socke...29.132', 443)>, ('87.240.129.132', 443))
handle: <Handle BaseSelectorEventLoop._sock_connect_cb(<Future finished result=None>, <socket.socke...29.132', 443)>, ('87.240.129.132', 443))>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/lib/python3.7/asyncio/selector_events.py", line 501, in _sock_connect_cb
fut.set_result(None)
asyncio.base_futures.InvalidStateError: invalid state
Process Process-2:
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/home/yardalgedal/v4_async/modules/server.py", line 23, in run
start_tornado()
File "/home/yardalgedal/v4_async/modules/server.py", line 43, in start_tornado
tornado.ioloop.IOLoop.current().start()
File "/home/yardalgedal/v4_async/venv/lib/python3.7/site-packages/tornado/platform/asyncio.py", line 148, in start
self.asyncio_loop.run_forever()
File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
self._run_once()
File "/usr/lib/python3.7/asyncio/base_events.py", line 1695, in _run_once
if handle._cancelled:
AttributeError: 'str' object has no attribute '_cancelled'
child 5 (pid 2707) exited with status 1, restarting
Transactions: 353 hits
Availability: 100.00 %
Elapsed time: 19.98 secs
Data transferred: 0.00 MB
Response time: 0.55 secs
Transaction rate: 17.67 trans/sec
Throughput: 0.00 MB/sec
Concurrency: 9.64
Successful transactions: 353
Failed transactions: 0
Longest transaction: 2.07
Shortest transaction: 0.27
Transactions: 209 hits
Availability: 100.00 %
Elapsed time: 19.09 secs
Data transferred: 0.00 MB
Response time: 0.88 secs
Transaction rate: 10.95 trans/sec
Throughput: 0.00 MB/sec
Concurrency: 9.63
Successful transactions: 209
Failed transactions: 0
Longest transaction: 3.27
Shortest transaction: 0.25
@property
def permission(self) -> int:
permission = config.permissions.ALL
for n, i in enumerate(self.user.data.privileges):
if i:
permission += config.permissions.PRIVILEGES[n]
return permission
@property
@functools.lru_cache(maxsize=8)
def permission(self) -> int:
permission = config.permissions.DIALOG
if self.chat.data.id and self.chat.users:
permission += config.permissions.CONVERSATION
if self.chat.users.get(self.user.data.id, {}).get('is_admin'):
permission += config.permissions.CONVERSATION_ADMIN
return permission + super().permission