A request to publish a service definition file in ArcGIS API for Python is sent twice to ArcGIS Server when the ArcGIS Enterprise portal uses Integrated Windows Authentication.
Triaged the issue multiple times and could not reproduce the issue. The service is not published twice. Please contact Esri Support Service if the issue continues or upgrade the ArcGIS API for Python version.