tools/perf/cli_tools/pinboard/pinboard.py
def UpdateJobsState(state):
  """Write back the updated state of pinpoint jobs.

  If there were any changes to the state, i.e. new jobs were created or
  existing ones completed, both the local cached copy and the backup in cloud
  storage are updated.
  """
  local_path = CachedFilePath(JOBS_STATE_FILE)
  with tempfile_ext.NamedTemporaryFile(mode='w') as tmp:
    json.dump(state, tmp, sort_keys=True, indent=2, separators=(',', ': '))
    tmp.close()
    if not os.path.exists(local_path) or not filecmp.cmp(tmp.name, local_path):
      shutil.copyfile(tmp.name, local_path)
      UploadToCloudStorage(local_path)
Write back the updated state of pinpoint jobs.

  If there were any changes to the state, i.e. new jobs were created or
  existing ones completed, both the local cached copy and the backup in cloud
  storage are updated.
  
Write back the updated state of pinpoint jobs.
If there were any changes to the state, i.e. new jobs were created or
existing ones completed, both the local cached copy and the backup in cloud
storage are updated.
Write back the updated state of pinpoint jobs . If there were any changes to the state i . e . new jobs were created or existing ones completed both the local cached copy and the backup in cloud storage are updated .
def UpdateJobsState(state):
  local_path = CachedFilePath(JOBS_STATE_FILE)
  with tempfile_ext.NamedTemporaryFile(mode='w') as tmp:
    json.dump(state, tmp, sort_keys=True, indent=2, separators=(',', ': '))
    tmp.close()
    if not os.path.exists(local_path) or not filecmp.cmp(tmp.name, local_path):
      shutil.copyfile(tmp.name, local_path)
      UploadToCloudStorage(local_path)
def UpdateJobsState ( state ) : local_path = CachedFilePath ( JOBS_STATE_FILE ) with tempfile_ext . NamedTemporaryFile ( mode = 'w' ) as tmp : json . dump ( state , tmp , sort_keys = True , indent = 2 , separators = ( ',' , ': ' ) ) tmp . close ( ) if not os . path . exists ( local_path ) or not filecmp . cmp ( tmp . name , local_path ) : shutil . copyfile ( tmp . name , local_path ) UploadToCloudStorage ( local_path )
Write back the updated state of pinpoint jobs.
Write back the updated state of pinpoint jobs .
"""Write back the updated state of pinpoint jobs.

  If there were any changes to the state, i.e. new jobs were created or
  existing ones completed, both the local cached copy and the backup in cloud
  storage are updated.
  """
state