def SendUpdatedMetadataToApp(task, data):
  payload = json.loads(base64.b64decode(task['payloadBase64']))

  # Add key to the data sent.
  data['id'] = payload['key']
  url = 'https://%s.appspot.com/update' % settings.PROJECT_ID
  return httplib2.Http().request(url,
                                 'POST',
                                 urlencode(data))


#########
# Heartbeat server
Add a metadata key value pairs for a specific run.
dataset/ETHPy150Open GoogleCloudPlatform/solutions-orchestrator-android-sampleapp-smashpix/daemon/compute_engine_daemon.py/SendUpdatedMetadataToApp--crossover with--dataset/ETHPy150Open openstack-infra/subunit2sql/subunit2sql/db/api.py/add_test_run_metadata