Skip to content

Publishing a feature service hangs #2274

@avni-ef

Description

@avni-ef

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)
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions