<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API Lock Files Batch works for some files and then stops working in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lock-Files-Batch-works-for-some-files-and-then-stops-working/m-p/630020#M29109</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1485792"&gt;@E_Fuks&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... For a big amount of roughly 100.000 files it works great. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1485792"&gt;@E_Fuks&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... But we get a error argument list too long using 5000 files or more. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Don't you contradict to yourself? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt;&lt;/P&gt;&lt;P&gt;Anyway... When and if the files count is too big, just decrease it. When and if overload happens, just delay and repeat the call and, if need, increase exponentially the delay. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; That's it.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 15:15:28 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2022-10-18T15:15:28Z</dc:date>
    <item>
      <title>API Lock Files Batch works for some files and then stops working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lock-Files-Batch-works-for-some-files-and-then-stops-working/m-p/629989#M29105</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have build a script which locks files in the dropbox. For a big amount of roughly 100.000 files it works great. We have split the data in chunks of 2500 files, so that the API works. Doing an API Call for each 2500 files.&lt;/P&gt;&lt;P&gt;After that we get an error 5xx.&amp;nbsp;&amp;nbsp;Restarting the script leads to another working 100.000 files. Setting up a loop waiting 5-10 minutes before retrying to lock the same files, leads to another locked 2500 files before the error comes again. And from that point, the loop does 2500 files, then put s out the 5xx error, waits and does the next 2500 and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or ideas? If it would be an Api-Limitation a restart of the script should not work for another 100.000 files, does it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 12:20:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lock-Files-Batch-works-for-some-files-and-then-stops-working/m-p/629989#M29105</guid>
      <dc:creator>E_Fuks</dc:creator>
      <dc:date>2022-10-18T12:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: API Lock Files Batch works for some files and then stops working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lock-Files-Batch-works-for-some-files-and-then-stops-working/m-p/630013#M29107</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1485792"&gt;@E_Fuks&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you don't receive any error because of big files number ("too_many_files"), better keep lock the files in one call (or as fewer calls as possible). Every call needs time to get GIL ownership, that's why your algorithm gets slow down and increase Dropbox server loads. Seems like mistake in the call response, since an error 'too_many_write_operations' better represent the situation. If you receive such error, repeat the call after exponential growing delay as many times as needed.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 14:04:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lock-Files-Batch-works-for-some-files-and-then-stops-working/m-p/630013#M29107</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-10-18T14:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: API Lock Files Batch works for some files and then stops working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lock-Files-Batch-works-for-some-files-and-then-stops-working/m-p/630019#M29108</link>
      <description>&lt;P&gt;Thanks, that was also my initial thought. But we get a error argument list too long using 5000 files or more.&lt;/P&gt;&lt;P&gt;That's why we dropped the quantity of files.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:06:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lock-Files-Batch-works-for-some-files-and-then-stops-working/m-p/630019#M29108</guid>
      <dc:creator>E_Fuks</dc:creator>
      <dc:date>2022-10-18T15:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: API Lock Files Batch works for some files and then stops working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lock-Files-Batch-works-for-some-files-and-then-stops-working/m-p/630020#M29109</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1485792"&gt;@E_Fuks&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... For a big amount of roughly 100.000 files it works great. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1485792"&gt;@E_Fuks&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... But we get a error argument list too long using 5000 files or more. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Don't you contradict to yourself? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt;&lt;/P&gt;&lt;P&gt;Anyway... When and if the files count is too big, just decrease it. When and if overload happens, just delay and repeat the call and, if need, increase exponentially the delay. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; That's it.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:15:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lock-Files-Batch-works-for-some-files-and-then-stops-working/m-p/630020#M29109</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-10-18T15:15:28Z</dc:date>
    </item>
  </channel>
</rss>

