@task
def email_render_document_progress(percent_complete, total):
 subject = ('The command `render_document` is %s%% complete' % percent_complete)
 message = ('The command `render_document` is %s%% complete out of a total of %s documents to render.' % (percent_complete, total))
 mail_admins(subject=subject, message=message)

@ task def email_render_document_progress ( percent_complete , total ) : subject = ( 'The command `render_document` is %s%% complete' % percent_complete ) message = ( 'The command `render_document` is %s%% complete out of a total of %s documents to render.' % ( percent_complete , total ) ) mail_admins ( subject = subject , message = message )
task to send email for render_document progress notification .