Reputation: 15
I'm calling the folder move API call (via the Python SDK -- by extending the Client class) and am running into problems when the user content I'm trying to move takes a very long time or doesn't fully complete.
Any guidance on proper error handling or call status watching? As it is now, the PUT call timed out in my script -- generating a traceback, but from the admin interface I can still see some progress is occurring in the background. I'm trying to figure out how I could idempotently recover from this or increase the timeout to minimize the risk of it happening again.
Also, it seems at times that large moves only partially succeed leaving me with content split between the original and new folders. Not fun to automatically clean up from.
Additional background: Am using the Python SDK to write some basic user cleanup routines:
Thanks!
Upvotes: 0
Views: 74
Reputation: 51
How large is folder you are attempting to move? If it is a very large folder (10+GBs) this could require a ticket with Box Support to run the job on the backend for you. You can reach Box support by sending an email to [email protected].
Otherwise your strategy is correct.
Upvotes: 1