code: def calculate_job_input_hash(job_spec, workflow_json):
      
      if 'workflow_workspace' in job_spec:
          del job_spec['workflow_workspace']
      job_md5_buffer = md5()
      job_md5_buffer.update(json.dumps(job_spec).encode('utf-8'))
      job_md5_buffer.update(json.dumps(workflow_json).encode('utf-8'))
      return job_md5_buffer.hexdigest()
docs: Calculate md5 hash of job specification and workflow json.