legnaleurc / ddld Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Need to catch exception and release the cache lock.
If the file is too old, just check integrity if possible, don't download it.
2016-07-29 08:11:00,772|ERROR___|Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x6fc33300>, <tornado.concurrent.Future object at 0x6fc31a30>)
Traceback (most recent call last):
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/gen.py", line 1017, in run
yielded = self.gen.send(value)
StopIteration: 3509102690
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/ioloop.py", line 600, in _run_callback
ret = callback()
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/stack_context.py", line 275, in null_wrapper
return fn(*args, **kwargs)
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/ioloop.py", line 615, in <lambda>
self.add_future(ret, lambda f: f.result())
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/concurrent.py", line 232, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/gen.py", line 1014, in run
yielded = self.gen.throw(*exc_info)
File "<string>", line 6, in _wrap_awaitable
File "/home/pi/local/src/acddl/acddl/worker.py", line 48, in do
rv = await future
File "<string>", line 3, in __await__
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/gen.py", line 1008, in run
value = future.result()
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/concurrent.py", line 232, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File "/home/pi/local/src/acddl/acddl/worker.py", line 83, in _process
rv = await rv
File "/home/pi/local/src/acddl/acddl/controller.py", line 276, in _download
if await self._need_recycle(node):
File "/home/pi/local/src/acddl/acddl/controller.py", line 205, in _need_recycle
required_space = await self._get_node_size(node)
File "/home/pi/local/src/acddl/acddl/controller.py", line 227, in _get_node_size
children = await tg.multi(children)
File "<string>", line 3, in __await__
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/gen.py", line 1008, in run
value = future.result()
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/concurrent.py", line 232, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/gen.py", line 789, in callback
result_list.append(f.result())
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/concurrent.py", line 232, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/gen.py", line 282, in wrapper
yielded = next(result)
File "<string>", line 6, in _wrap_awaitable
File "/home/pi/local/src/acddl/acddl/controller.py", line 225, in _get_node_size
children = await self._context.db.get_children(node)
File "/home/pi/local/src/acddl/acddl/controller.py", line 515, in get_children
folders, files = await self._worker.do(functools.partial(self._acd_db.list_children, node.id))
File "/home/pi/local/src/acddl/acddl/worker.py", line 44, in do
await self._queue.put(task)
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/queues.py", line 163, in put
self.put_nowait(item)
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/queues.py", line 186, in put_nowait
self.__put_internal(item)
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/queues.py", line 264, in __put_internal
self._put(item)
File "/home/pi/.pyenv/versions/py35/lib/python3.5/site-packages/tornado/queues.py", line 322, in _put
heapq.heappush(self._queue, item)
RuntimeError: list changed size during iteration
Cache updating could be canceled.
Recycle is broken at tail.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.