A
A
alxsmrn2016-06-23 18:19:48
Yii
alxsmrn, 2016-06-23 18:19:48

Is it possible to run the yii2 web controller as a cron task?

Is it possible to run yii2 web controller as a cron job? If possible, how?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DieZz, 2016-06-23
@DieZz

Use a console application

D
Dmitry Bay, 2016-06-23
@kawabanga

As to your question, yes it is possible.
An example is https://masterhost.ru/support/doc/cron/ .
But as mentioned above - write your own console controller.
One of the advantages of running from the console is that you won't have many of the limitations that you have when running via wget, such as script execution time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question