I
I
ImPuuLsE2016-07-21 18:41:29
Yii
ImPuuLsE, 2016-07-21 18:41:29

How to launch a console application with dynamic timeout in Yii2?

Greetings, tell me how you can organize this scheme:
Is there a console application that needs to be launched every 20-30 seconds (random value)? Kron as I understand it is not suitable for such a purpose. Where to dig?
Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Yakovlev, 2016-07-26
@Pr0per

Why not wrap what you need in a function and execute on a timer. I launched the application and every N seconds the function is executed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question