Updating / Adding a large Scene Layer Package to AGOL - timeout?

136
0
02-09-2019 11:51 AM
AndyMarchant
New Contributor II

I’m trying to automate the update of a scene layer package in AGOL using a scheduled task and ArcGIS API for Python.
The problem is uploading the package to AGOL - I’ve tried:

slpk_Item = gis.content.search("{} AND owner:{}".format(sd_fs_name, user), item_type="Scene Package")[0]
slpk_Item.update(data=slpk_path)


and then tried to delete the package and re-add it using:

gis.content.add(item_properties=slpk_properties, data=slpk_path)


Both work fine on a small test scene layer package but on my real data (90MB), the package gets updated/added to AGOL but the functions don’t return – my guess is it's taking too long and there is a timeout. In the arcgis.gis module there is a status function which suggests it’s used to poll an asynchronous add request for completion, but I can’t find any help on how to send the add/update asynchronously. Can anybody give an example?

0 Kudos
0 Replies