Create offline transfer export worker
In direct transfer, relations are exported to ndjson files from the source instance only when the destination instance sends an HTTP request to the source to start exporting relations.
In offline transfer, there's no link between source and destination instances, so a worker will need to be created to begin and keep track of relation exports for all portables in the offline export.
Proposal
- Create a new worker,
Import::Offline::ExportWorker
- Create a new service,
Import::Offline::Export::ProcessService
that executesBulkImports::ExportService
for each portable relation that needs to be exported by callingBulkImports::ExportService
for each portable. The service should re-enqueueImport::Offline::ExportWorker
while exports are still processing. This service also updates the status of the parentImport::Offline::Export
record.