def METHOD_NAME(
    self,
    event: Event | GroupEvent,
    is_new: bool,
    is_regression: bool,
    is_new_group_environment: bool,
    primary_hash: Optional[str],
    received_timestamp: float,
    skip_consume: bool = False,
    group_states: Optional[GroupStates] = None,
) -> None:
    self._dispatch_post_process_group_task(
        event.event_id,
        event.project_id,
        event.group_id,
        is_new,
        is_regression,
        is_new_group_environment,
        primary_hash,
        self._get_queue_for_post_process(event),
        skip_consume,
        group_states,
        occurrence_id=event.occurrence_id if isinstance(event, GroupEvent) else None,
    )