A
A
Alex Wells2017-07-22 18:34:56
Redis
Alex Wells, 2017-07-22 18:34:56

Accurate timer from php/laravel?

Hello. There is a project in laravel, php. The framework offers a delay queuing system.
The task is to postpone the execution of the Job for 30 seconds with a maximum error of 500ms (better - less). I am writing on Windows (unfortunately), so there is no way to test beanstalkd or redis as queue handlers under normal conditions.
On Windows, radish gives an error of 2+ seconds, which does not climb into any gate at all. Will the situation change on the linux server? If not, will the situation change when using beanstalkd on linux?
If this is not the case, then I ask you to suggest a way to make the exact timeout in php (entrance to php and exit to php, and what's behind the scenes - it doesn't matter. at least js).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2017-07-22
@Alex_Wells

You describe the task, it looks like you designed something wrong, or you think too straightforward, finding solutions "on the forehead", where there are simpler ways.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question