def METHOD_NAME(coordinator, metadata):
  # Job attributes
  attributes = metadata.setdefault('attributes', {})
  coordinator.description = attributes.setdefault('description', coordinator.description)
  coordinator.deployment_dir = attributes.setdefault('deployment_dir', coordinator.deployment_dir)
  try:
    # @TODO(abe): Handle managed and unmanaged cases.
    coordinator.workflow = Workflow.objects.get(name=metadata['workflow'], owner=coordinator.owner, managed=True)
  except Workflow.DoesNotExist:
    raise