Do not retry whole job in case there is a problem uploading the output dataset to the task table. Addendum to c2c1f59.
Remove unnecessary use of json module. Addendum to c2c1f59.
Clean up unneeded code related to putting output datasets in the task table.