I don't see in your script where you are disconnecting the usersarcpy.DisconnectUser("Database Connections/admin@sde.sde", "ALL")
Probably what you want is this:Scheduling a Python script to run at prescribed timesDesktop » Geoprocessing » Executing toolshttp://resources.arcgis.com/en/help/main/10.1/index.html#//002100000038000000It probably doesn't make sense, not practical sense, to make this a script tool - unless you mean you only want a part of this as a tool. At the very beginning of the webhelp documentation, the purpose of the design of this script is posted:"This topic discusses the process an administrator might go through to run a scheduled nightly reconciliation of versions."At any rate, this is a rather long and intensive administrator task that:a) You wouldn't likely want users' to launch, particularly during the day (which would effectively take the database offline for a lengthy period of time.b) You would very likely need to monitor the log and need time as an administrator to fix any hiccups that are bound to occur.c) There are so many input parameters in this script, users would think they are filling out a job application....just setting it up for the run, unless you set it up in some kind of default mode, will be a headache for most any user...doubtful an administrator would even use it.Hope that helps, and by the way - I have written overnight scheduled tasks before and they work very well. This one you have chosen to tackle is likely the most complexly powerful one I have ever seen....and it is critical to get it right, particularly if you have many users.Good luck! It is very interesting though.-Wayne
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.