'Cancel the execution of a command.
Arguments:
session -- All stored data relevant to the current
command session.'

def cancel_command(self, session):

    sessionid = ('client:' + session['id'])
    self.sessions[sessionid] = session
    self.send_command(session['jid'], session['node'], ifrom=session.get('from', None), action='cancel', payload=session.get('payload', None), sessionid=session['id'], flow=True, block=session['block'])
