Skip to main content

benecaster_bulk_import_completed

Action Free

Fires once at every end of a job that fired benecaster_bulk_import_started: the feed could not be fetched (an HTTP error or non-200 response), the response was not RSS, or every item was processed (complete) — the same rule as benecaster_feed_sync_completed. Check $progress[‘status’] before treating it as success. On complete, the show’s Source feed URL has already been saved (when the show had none), and every benecaster_episode_imported for the job has already fired. On a large import it fires in a later PHP request than the start, so anything held in memory between the two will not be there. A run that dies mid-way is picked up by the next, so the job still reaches an end.

Parameters

Name Type Default Description
$show_id int — ID of the show imported into
$progress array — The job's final progress, the same array FeedBulkImporter::get_progress() returns: total (int), imported (int), skipped (int) (GUID already on the show), errors (int) (draft could not be created), status (string) — 'complete' or 'failed', and error_msg (string) only when status is 'failed'
$job_id string — The opaque job ID FeedBulkImporter::start_import() returned
$feed_url string — The feed that was imported

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