Subject: | ttr and priority values are not changed when set through client |
Date: | Tue, 18 Jun 2013 21:51:51 +0000 |
To: | "bug-Beanstalk-Client [...] rt.cpan.org" <bug-Beanstalk-Client [...] rt.cpan.org> |
From: | Sivaram Battu <sbattu [...] juniper.net> |
Hello,
I am trying to change the default value of the ttr for a job and I am specifying that as part of the call put(), but when I look at that job it looks like the 'ttr' value didn't change.
my $job = $client->put({ttr => 40},{data => "test"});
When I print the job using Dumper, I still see that the 'ttr' value is 120(default) but not 40.
9$VAR1 = bless( {
'client' => bless( {
'priority' => 10000,
'_recv_buffer' => '',
'delay' => 0,
'ttr' => 120,
'default_tube' => 'testq',
'socket' => bless( \*Symbol::GEN0, 'IO::Socket::INET' ),
'decoder' => sub { "DUMMY" },
'_watching' => {
'testq' => 1
},
'encoder' => sub { "DUMMY" },
'_using' => 'testq',
'server' => 'ttsv-cbrdb-01.juniper.net'
}, 'Beanstalk::Client' ),
'id' => '62720',
'data' => '---
data: test
',
'reserved' => 1
}, 'Beanstalk::Job' );