Is it possible at some point to solve the Beanstalkd problem?

I use the Beantalkd and Yii2 framework. To add to the queue, I use something like this:

        Yii::$app->beanstalk
          ->putInTube('tube2', ['param' => 'val'], PheanstalkInterface::DEFAULT_PRIORITY, PheanstalkInterface::DEFAULT_DELAY);

But now I need to complete some task right away at the specified time, is this possible with Beantalkd, or do I need something like Resque?

+4
source share
1 answer

You can play some task at a specific time by calculating the delay and sending it as a parameter to your example.

On the other hand, it would be nice to keep time-based lists, for example in Redis, and have a cron that reads expired every minute and loads jobs into beanstalkd.

+1
source

Source: https://habr.com/ru/post/1612487/


All Articles