Scheduled Task: Reconcile/Compress/Email

Discussion created by mcdade31 on Nov 4, 2013
Latest reply on Nov 5, 2013 by rbrennan-esristaff
I'm taking a stab at scheduled tasks. I have created a model that reconciles our SDE versions and then does a compress.

I have exported the model to a python script and want to schedule it to run each night. But first I'd like to add some code so that it sends me an email when completed and include the geoprocessing messages.

I came across this support article that seems to do exactly what I'm looking for. However, I'm not sure how I incorporate it into my existing model/script?

Do I just put the code at the end of the script? Is it a different stand alone script?