Skip to main content

benecaster_migration_import_complete

Action Premium migration-wizard

Fires once when a migration import has finished, after its counts and its reconciliation report are written. Use for post-import notifications, triggering bulk operations, or logging import results to an external system.

A large $count_skipped is not an error. Running the wizard again on a show already migrated skips almost every row, because people already brought across are left untouched. A healthy top-up can report 12 imported and 340 skipped. The batch’s reconciliation report says why each row was skipped.

$count_imported + $count_skipped is the number of rows. A row whose join date could not be read counts as imported, because the person was migrated; the reconciliation report lists it too.

It fires even when every row was skipped. It does not fire when the import was refused before it started, and then benecaster_migration_import_started did not fire either. The two are not a guaranteed pair, though: a fatal error during an import fires the opener and never this hook, so anything you pause when an import opens needs its own expiry.

Parameters

Name Type Default Description
$show_id int — ID of the show
$platform string — Source platform slug (e.g. 'patreon', 'supercast')
$count_imported int — Rows that produced a migrated person
$count_skipped int — Rows that did not (already migrated, listed twice, invalid email, unmapped tier, and so on)
$batch_id int — ID of the import (the benecaster_migration_imports row)

Need this built rather than just documented? See our services →