Google app engine 在Blobstore GAE FileNotOpenedError:ApplicationError:10中合并大文件
我正在尝试合并2个文件,并在AppEngine的BlobStore中创建一个新文件。此文件有12.000行,有12 MB。写入新文件时会出现问题,因为在写入过程中会出现下一个错误:Google app engine 在Blobstore GAE FileNotOpenedError:ApplicationError:10中合并大文件,google-app-engine,merge,blobstore,Google App Engine,Merge,Blobstore,我正在尝试合并2个文件,并在AppEngine的BlobStore中创建一个新文件。此文件有12.000行,有12 MB。写入新文件时会出现问题,因为在写入过程中会出现下一个错误: ApplicationError: 10 Traceback (most recent call last): File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py
ApplicationError: 10
Traceback (most recent call last):
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 716, in __call__
handler.post(*groups)
File "/base/data/home/apps/s~ono-hat-vv2/1.369681903434492066/com/__init__.py", line 244, in post
self.principal(cont+1, numFicheritos,"csvTotal","uniendoCSV")
File "/base/data/home/apps/s~ono-hat-vv2/1.369681903434492066/com/__init__.py", line 277, in principal
self.escribirtxt(f, cadenaSalida)
File "/base/data/home/apps/s~ono-hat-vv2/1.369681903434492066/com/__init__.py", line 308, in escribirtxt
f.write(linea)
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/files/file.py", line 326, in write
self._make_rpc_call_with_retry('Append', request, response)
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/files/file.py", line 427, in _make_rpc_call_with_retry
_make_call(method, request, response)
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/files/file.py", line 252, in _make_call
_raise_app_error(e)
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/files/file.py", line 195, in _raise_app_error
raise FileNotOpenedError(e)
FileNotOpenedError: ApplicationError: 10
我已经读到,问题在于我打开文件的时间,因为这不能超过30秒。如何解决此问题并合并此文件?经常关闭文件并重新打开
你看过谷歌云存储吗?它可能没有这个限制,而且appenginefiles api已经被弃用,我们无论如何都需要朝这个方向前进。可能需要显示代码。也许你可以做一个延迟的任务或者在后台工作。问题是流量不能很长的打开时间,并且自动关闭。最后,我将文件添加到云存储中,该存储具有较少的限制,并且更易于使用。问题是,流无法在很长时间内打开,并且会自动关闭。最后,我将文件添加到云存储中,该存储具有较少的限制,并且更易于使用