2

Now I am upset on the Cron job of Magento 2.0.

I have just installed Magento 2.0.4 and set the cron job using xampp.

I know if the cron job is working, I can see the schedule at 'cron_scehedule'.

But I cannot any internal cron job.

At the same time I tested with same ways using magento 1.0.

It works well.

Please let me know how can I test Magento 2.0 cron job is working or not.

wuang li
  • 71
  • 3

1 Answers1

4

You have to run below command for schedule and run cron.

php bin/magento cron:run
Jaimin Parikh
  • 2,392
  • 2
  • 13
  • 27
  • how to use $_FILES while saving imported file[system config] ? as global variable we can't use @jaimin – Keyur Shah Sep 09 '16 at 10:11
  • Use below code : $this->_objectManager = \Magento\Framework\App\ObjectManager::getInstance();

    $uploader = $this->_objectManager->create('Magento\MediaStorage\Model\File\Uploader', ['fileId' => 'field_id']); $csvFile = $uploader->validateFile()['tmp_name'];

    – Jaimin Parikh Sep 09 '16 at 10:55
  • Whats is field_id ? I have to pass $_FILES['groups']['tmp_name'] ? As I am using this system configuration – Keyur Shah Sep 09 '16 at 10:57
  • feild_id is name of element. – Jaimin Parikh Sep 09 '16 at 12:11