Code Monkey home page Code Monkey logo

queue's People

Contributors

0x501d avatar rybakit avatar ylobankov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

queue's Issues

Add tarantool/client dependency new version 0.10

composer req -W tarantool/client:v0.10.0
./composer.json has been updated
Running composer update tarantool/client --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires tarantool/client v0.10.0, found tarantool/client[v0.10.0] but these were not loaded, likely because it conflicts with another require.
Problem 2
- tarantool/queue is locked to version v0.9.0 and an update of this package was not requested.

How to add SQL queries to the queue system ?

Hi,
I wonder if there is any example out there where I can use the php-client (for Tarantool ) to actually add SQL queries to the queue system in utube order or fifo order?

Thanks very much for any reply

Regards Zilveer

Bug with "limfifottl" queues when capacity is reached

Create a queue

queue = require 'queue'
queue.create_tube('test', 'limfifottl', {capacity = 1})

Next add records:

$queue = new Queue($client, 'test');
$result = $queue->put(45);
var_dump($result);
$result = $queue->put(45);
var_dump($result);

Output:

object(Tarantool\Queue\Task)#26 (3) {
  ["id":"Tarantool\Queue\Task":private]=>
  int(0)
  ["state":"Tarantool\Queue\Task":private]=>
  string(1) "r"
  ["data":"Tarantool\Queue\Task":private]=>
  int(45)
}
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Tarantool\Queue\Task::fromTuple() must be of the type array, null given, called in /vendor/tarantool/queue/src/Queue.php on line 45 and defined in /vendor/tarantool/queue/src/Task.php:34
Stack trace:
#0 /vendor/tarantool/queue/src/Queue.php(45): Tarantool\Queue\Task::fromTuple(NULL)
#1 /test.php(60): Tarantool\Queue\Queue->put(45)
#2 {main}
  thrown in /vendor/tarantool/queue/src/Task.php on line 34

Expected output:

object(Tarantool\Queue\Task)#26 (3) {
  ["id":"Tarantool\Queue\Task":private]=>
  int(0)
  ["state":"Tarantool\Queue\Task":private]=>
  string(1) "r"
  ["data":"Tarantool\Queue\Task":private]=>
  int(45)
}
NULL

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.