This pull request addresses an issue related to the handling of AMQP based task messages when a task is not registered with the worker, and IgnoreWhenTaskNotRegistered is set. The existing logic is adjusted to correctly NACK the message with requeue=false in these scenarios.
Changes Made
Adjust the logic to properly NACK the AMQP message with requeue=false when IgnoreWhenTaskNotRegistered is true.
Impact
This fix ensures consistent and correct behavior in handling AMQP messages, especially in scenarios where tasks are not registered, and IgnoreWhenTaskNotRegistered is configured.
Description
This pull request addresses an issue related to the handling of AMQP based task messages when a task is not registered with the worker, and
IgnoreWhenTaskNotRegistered
is set. The existing logic is adjusted to correctly NACK the message withrequeue=false
in these scenarios.Changes Made
requeue=false
whenIgnoreWhenTaskNotRegistered
is true.Impact
This fix ensures consistent and correct behavior in handling AMQP messages, especially in scenarios where tasks are not registered, and
IgnoreWhenTaskNotRegistered
is configured.