def write_to_s3
      status_path = "#{@s3_path}/status.json"
      s3.put_object(@bucket, status_path, "#{to_json}\n")
      unless @status_url
        expire_date = Time.now + (3600 * 24)  # one day from now
        @status_url = s3.get_object_http_url(@bucket, status_path, expire_date)
        s3.put_object(@bucket, status_path, "#{to_json}\n")
      end
    end
def write_to_s3
      status_path = "#{@s3_path}/status.json"
      s3.put_object(@bucket, status_path, "#{to_json}\n")
      unless @status_url
        expire_date = Time.now + (3600 * 24)  # one day from now
        @status_url = s3.get_object_http_url(@bucket, status_path, expire_date)
        s3.put_object(@bucket, status_path, "#{to_json}\n")
      end
    end
Writes this job's JSON representation to S3