OSError: [Errno 24] Too many open Google App Engine task queue files in Dev

I am testing a Google App Engine application where I started using task queues to process a batch job. I have a local task, which is a series of tasks in a task queue that seem to create several objects in my file system. To be clear: I am not creating any files, it seems the application server.

I noticed when creating a large number of tasks (2000+) in my development environment that at some point my tasks start to fail with the following error:

<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> -->
<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> -->
</font> </font> </font> </script> </object> </blockquote> </pre>
</table> </table> </table> </table> </table> </font> </font> </font><pre>Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3211, in _HandleRequest
    self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3135, in _Dispatch
    'request.')
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/tempfile.py", line 302, in mkstemp
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/tempfile.py", line 236, in _mkstemp_inner
OSError: [Errno 24] Too many open files: '/var/folders/rm/rm1N57BDHNCyQUT2mQRTX++++TI/-Tmp-/request.QKY1gF.tmp'
</pre> 

OS X 10.6.5, , - - , dev_appserver.py . , ?

, , dev, , - .

+3
2

. .

, dev_appserver. , lsof, , dev .

sqlite-, . , .

dev_appserver.py --use_sqlite --clear_datastore .
+4

, (. "" ).

"", BlobProperty ( 1MB) , , Blobstore ( ).

0

Source: https://habr.com/ru/post/1775099/


All Articles