I see nothing in the docs.... https://esri.github.io/arcgis-python-api/apidoc/html/index.html
nor in the sample notebooks https://developers.arcgis.com/python/sample-notebooks/
can the script be run as a general scheduled task?
The script can be run as a genera scheduled task using Task Scheduler on Windows and cron on Linux.
You could follow the blog post at https://www.esri.com/arcgis-blog/products/product/analytics/scheduling-a-python-script-or-model-to-r... for tips on how to do this except that you'd use the Python.exe from the environment that has ArcGIS API for Python installed in it. Refer to Schedule [Virtualenv Dependent] Python Script with Windows Task Scheduler - Super User for how to do this with conda.
Hi Shawn Hibbs - Open a command prompt and type:
conda info -e
This will output a list of all your environments and the path to where they are stored.
You can also search for the arcgis package in a specific environment with the following command:
conda list -n myenv arcgis
Respectfully folks, please be careful when you are discussing the term environment in such a context. A given user has multiple environment contexts in an OS. As a direct comment to the above statement, conda does not know everything about the user's environment; FURTHERMORE, the environment settings that a user is given at a CLI can be quite different from when run as a task.
I have found the only way to download a hosted feature service table with attachments using Python is with the ArcGIS API. This will only work as a .ipynb and not as a .py. I'm aware that I can run .py files on task scheduler but have not found a solution to run a .ipynb on some sort of scheduler.