R
R
Rishat Sultanov2017-05-07 15:04:07
PHP
Rishat Sultanov, 2017-05-07 15:04:07

How to run Cron task on Open Server?

Good afternoon, ladies and gentlemen.
Based on the documentation, I started to schedule tasks in Laravel.
It seems that I added a task to the schedule() method.

DB::table('zagon_all')->insert(
            ['id' => '']
        )->everyMinute();

But with the Cron record, I don’t quite understand how to add it correctly.
A2555563.jpg
And what path to specify to the project if the project is in:
D:\Program\OpenServer\OpenServer\domains\bt\taskback
And did I add the task correctly?
Kernel.php
PS
I did not find methods that do it in seconds. And I want the task to run every 2 seconds. Is this somehow possible to implement?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pantagruel964, 2017-05-07
@rishatss

How to run cron every 2 seconds if the minimum interval is a minute? Probably not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question