original_docstring: Publishing of work report to file
docstring: Publishing of work report to file
docstring_tokens: Publishing of work report to file
code: def publish_work_report(work_report=None, workerAttributesFile="worker_attributes.json"):
      """Publishing of work report to file"""
      if work_report:
          if work_report.has_key("outputfiles"):
              del (work_report["outputfiles"])
          with open(workerAttributesFile, 'w') as outputfile:
              work_report['timestamp'] = timestamp()
              json.dump(work_report, outputfile)
          logger.debug("Work report published: {0}".format(work_report))
      return 0
code_tokens: def publish_work_report ( work_report = None , workerAttributesFile = "worker_attributes.json" ) : if work_report : if work_report . has_key ( "outputfiles" ) : del ( work_report [ "outputfiles" ] ) with open ( workerAttributesFile , 'w' ) as outputfile : work_report [ 'timestamp' ] = timestamp ( ) json . dump ( work_report , outputfile ) logger . debug ( "Work report published: {0}" . format ( work_report ) ) return 0
short_docstring: Publishing of work report to file
short_docstring_tokens: Publishing of work report to file
comment: """Publishing of work report to file"""