How to use kartik yii2-export extension in background using yii2-queue extension

I have an export menu like this

<?php   // Export menu

        $menuExport = ExportMenu::widget([
            'dataProvider' => $dataProvider,
            'columns' => $gridColumns,
            'filename' => $this->title . '_' . date('Ymd'),
            'clearBuffers' => false,
            'timeout' => -1,
            'target' => ExportMenu::TARGET_BLANK,
            'fontAwesome' => true,
            'pjaxContainerId' => 'kv-pjax-container',
            'hiddenColumns' => [],
            'messages' => [
                'allowPopups' => $allowPopups,
                'confirmDownload' => $confirmDownload,
            ],
            'dropdownOptions' => [
                'label' => Yii::t('app', 'Export'),
                'class' => 'btn btn-default',
                'itemsBefore' => [
                    '<li class="dropdown-header">' . Yii::t('app', 'Export data') . '</li>',
                ],
            ],
            'exportConfig' => [],
        ]);
    }

    ?>

And I would like to use the variable $menuExport in a class
class DownloadJob extends BaseObject implements \yii\queue\JobInterface
which can run in background using yii2-queue, so it doesn’t block anything while running.
I need this because the table could contain even million of rows, and the export process could be very long.

Is this possible?

I am trying to achieve the exact same behavior. I have Kartik’s export menu implemented in my system, however it instantly generates the file and then either saves it or provides the file download.

What I want is to use a job to generate the file in background, then my user would be able to download this file in a given view. This way my user can keep browsing while the file is being generated for download.

I have tried editing the ExportMenu file to intercept the file generation but its being hard to understand what needs to be done. Any insight on this?