For a little extra context: the job that's firing the above code is the one chained to the end of the Laravel Excel Import queued import job here:
(new TransactionReportImport($this->transactionImport))
->queue($media->getPathRelativeToRoot(), $media->disk)
->allOnQueue('import')
->chain([
new ProcessImportedFacebookTransactions(
import: $this->transactionImport->import,
importOfType: $this->transactionImport,
customerTeam: $this->team
),
]);