[go: up one dir, main page]

Skip to content

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 executes BulkImports::ExportService for each portable relation that needs to be exported by calling BulkImports::ExportService for each portable. The service should re-enqueue Import::Offline::ExportWorker while exports are still processing. This service also updates the status of the parent Import::Offline::Export record.