def METHOD_NAME(self, full_resync: bool):
    hostname = settings.RAPIDPRO_HOSTNAME
    self.stdout.write(f"Syncing with {hostname}...")
    sync_time = timezone.now() - CLOCK_SKEW
    metadata, _ = Metadata.objects.get_or_create()
    after = None if full_resync else metadata.last_sync
    batches = get_contact_batches(after=after)
    for contact_batch in batches:
        self.stdout.write(f"Processing a batch of {len(contact_batch)} contacts.\n")
        for contact in contact_batch:
            self.sync_contact(contact)
    metadata.last_sync = sync_time
    metadata.save()
    self.stdout.write(f"Done syncing with {hostname}.\n")