Implement new event for batch complete action

Created on 14 March 2022, over 2 years ago
Updated 11 December 2023, 7 months ago

Problem/Motivation

Recently while working I came across to send the emails after migration is run.
Initially, I tried to leverage migration API events.
However, I noticed that as we are running migrations in batch, it was invoking events multiple times.
It seemed that there were multiple migration objects and all were being invoked after they are complete.
I wanted to ensure that we want to do something only after our batch is complete.

Steps to reproduce

Create new event subscriber that subscribes MigrateImport event.
Send some actions/emails etc and those are being sent multiple times.

Proposed resolution

Add an event in batch finished callback.

Remaining tasks

Adding patch.
Needs review from members.

User interface changes

N/a

API changes

N/A

Data model changes

N/a

📌 Task
Status

Needs review

Version

6.0

Component

Code

Created by

🇮🇳India mohit_aghera Rajkot

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024