I really think this is the wrong place for this.  The polling command is subclassed by many commands and the report contained in the task.report is different for every command.  This logic belongs in the override succeeded() in the upload command itself not in the base class.