Skip to content

Publishing a feature service hangs #2274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
avni-ef opened this issue Apr 29, 2025 · 0 comments
Open

Publishing a feature service hangs #2274

avni-ef opened this issue Apr 29, 2025 · 0 comments
Labels

Comments

@avni-ef
Copy link

avni-ef commented Apr 29, 2025

Describe the bug
Publishing a feature service can hang forever on _check_publish_status.
At first I thought this is related to this issue since I run it with future=False, but I upgraded to 2.4.1, and the problem still occurs.

To Reproduce
Steps to reproduce the behavior:

folders = gis.content.folders
root_folder = folders.get()
item = root_folder.add(item_properties=item_properties, file=geojson_local_path).result()
publish_parameters = {
            "name": feature_title,
            "maxRecordCount": 2000,
            "hasStaticData": True,
            "layerInfo": {
                "capabilities": "Query"
            }
}

feature_service = item.publish(publish_parameters=publish_parameters,
                                                   overwrite=False,future=False)

error:

<no error, process just hangs forever>

Screenshots
If applicable, add screenshots to help explain your problem.

Expected behavior
Feature service should be published successfully

Platform (please complete the following information):

  • OS: [e.g. iOS] Debian GNU/Linux (containerized)
  • Browser -
  • Python API Version arcgis==2.4.1; arcgis_mapping==4.30.0

Additional context
I ran py-spy on the stuck process, seems the process hangs in _check_publish_status

Python v3.10.8 (/usr/local/bin/python3.10)

Thread 1 (idle): "MainThread"
    _check_publish_status (arcgis/gis/__init__.py:17547)
    _publish (arcgis/gis/__init__.py:17195)
    publish (arcgis/gis/__init__.py:16818)
    ...
@avni-ef avni-ef added the bug label Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant