Lines 100-105
sub enqueue {
Link Here
|
100 |
|
100 |
|
101 |
my $borrowernumber = C4::Context->userenv->{number}; # FIXME Handle non GUI calls |
101 |
my $borrowernumber = C4::Context->userenv->{number}; # FIXME Handle non GUI calls |
102 |
my $json_args = encode_json $job_args; |
102 |
my $json_args = encode_json $job_args; |
|
|
103 |
|
103 |
$self->set( |
104 |
$self->set( |
104 |
{ |
105 |
{ |
105 |
status => 'new', |
106 |
status => 'new', |
Lines 112-121
sub enqueue {
Link Here
|
112 |
)->store; |
113 |
)->store; |
113 |
|
114 |
|
114 |
$job_args->{job_id} = $self->id; |
115 |
$job_args->{job_id} = $self->id; |
115 |
$json_args = encode_json $job_args; |
|
|
116 |
|
116 |
|
|
|
117 |
my $conn; |
118 |
try { |
119 |
$conn = $self->connect; |
120 |
} catch { |
121 |
warn "Cannot connect to broker " . $_; |
122 |
}; |
123 |
return unless $conn; |
124 |
|
125 |
$json_args = encode_json $job_args; |
117 |
try { |
126 |
try { |
118 |
my $conn = $self->connect; |
|
|
119 |
# This namespace is wrong, it must be a vhost instead. |
127 |
# This namespace is wrong, it must be a vhost instead. |
120 |
# But to do so it needs to be created on the server => much more work when a new Koha instance is created. |
128 |
# But to do so it needs to be created on the server => much more work when a new Koha instance is created. |
121 |
# Also, here we just want the Koha instance's name, but it's not in the config... |
129 |
# Also, here we just want the Koha instance's name, but it's not in the config... |
122 |
- |
|
|