Hi everyone,

i'm using pheanstalk library to manage my queue but when i use the put 
command the return value is normally the job id inside the queue but i'ts 
alway return me 1 is that normal or just an Issue.

here an example : 
<?php


function createNewJob($name, $arg, $id){
    $bsc = new Beanstalk();

    $bsc->addserver("192.168.253.46", 11300);
 
    $value = array("name" => $name,
                      "acc" => $id,
                      "arg" => $arg       
        );

    $value = json_encode($value);

    $bsc->use("work");
     echo $bsc->put("work", $value);
}

?>

-----------------------
The output : 
1
-----------------------
Maybe i do something wrong ? can someone Help me ?

Cheers.

-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/beanstalk-talk/-/Bh12wIXZVZkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en.

Reply via email to