def METHOD_NAME(self):
    created = False
    changed = False
    (ig, created) = InstanceGroup.objects.get_or_create(name=self.queuename)
    if ig.policy_instance_percentage != self.instance_percent:
        ig.policy_instance_percentage = self.instance_percent
        changed = True
    if ig.policy_instance_minimum != self.instance_min:
        ig.policy_instance_minimum = self.instance_min
        changed = True
    if self.is_container_group and (ig.is_container_group != self.is_container_group):
        ig.is_container_group = self.is_container_group
        changed = True
    if self.pod_spec_override and (ig.pod_spec_override != self.pod_spec_override):
        ig.pod_spec_override = self.pod_spec_override
        changed = True
    if self.max_forks and (ig.max_forks != self.max_forks):
        ig.max_forks = self.max_forks
        changed = True
    if self.max_concurrent_jobs and (ig.max_concurrent_jobs != self.max_concurrent_jobs):
        ig.max_concurrent_jobs = self.max_concurrent_jobs
        changed = True
    if changed:
        ig.save()
    return (ig, created, changed)