I have buttons. When I click on them, I start the cron job. Cron works, everything is fine. But I ran into the problem that at the same time the file through which I run the load until the work of the cron ends.
Once again, the problem is that when I launch the cron through the button, the file Adminhtml/EbayApiScanningData/EbayData.php loaded until the cron job ends