Migration: Re-use async batch infrastructure
One thing I noticed while testing these changes is that we'll end up with a lot of activitypub_async_batch events that kind of obscure what they do until you look at the args for the individual jobs. Not sure how we feel about that.
Maybe we should just keep it to batches and not move the async_migration job?
Proposed changes:
- Updates migration jobs to re-using the Scheduler::async_batch infrastructure
- Update tests to account for the above changes.
Other information:
- [x] Have you written new tests for your changes, if applicable?
Testing instructions:
- Go to '..'
@obenland what about this PR?
Depends on #1521.
@pfefferle This should be ready for review
After team call: Let's make it possible to fill the Scheduler from class-migrations.php.
Meaning, how can we expand the batch callback allow list from the migration class. Also move action hooks back into the migration class. Could also be done in Migration::async_migration.