Lines 55-61
sub enqueue {
Link Here
|
55 |
# Also, here we just want the Koha instance's name, but it's not in the config... |
55 |
# Also, here we just want the Koha instance's name, but it's not in the config... |
56 |
# Picking a random id (memcached_namespace) from the config |
56 |
# Picking a random id (memcached_namespace) from the config |
57 |
my $namespace = C4::Context->config('memcached_namespace'); |
57 |
my $namespace = C4::Context->config('memcached_namespace'); |
58 |
$conn->send_with_receipt( { destination => sprintf("%s-%s", $namespace, $job_type), body => $json_args } ) |
58 |
$conn->send_with_receipt( { destination => sprintf("/queue/%s-%s", $namespace, $job_type), body => $json_args } ) |
59 |
or Koha::Exceptions::Exception->throw('Job has not been enqueued'); |
59 |
or Koha::Exceptions::Exception->throw('Job has not been enqueued'); |
60 |
} |
60 |
} |
61 |
); |
61 |
); |