{"action":"created","issue":{"url":"https://api.github.com/repos/eandersson/amqpstorm/issues/62","repository_url":"https://api.github.com/repos/eandersson/amqpstorm","labels_url":"https://api.github.com/repos/eandersson/amqpstorm/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/eandersson/amqpstorm/issues/62/comments","events_url":"https://api.github.com/repos/eandersson/amqpstorm/issues/62/events","html_url":"https://github.com/eandersson/amqpstorm/issues/62","id":359683992,"node_id":"MDU6SXNzdWUzNTk2ODM5OTI=","number":62,"title":"Getting Nack or Ack","user":{"login":"nimamahmoudi","id":3109169,"node_id":"MDQ6VXNlcjMxMDkxNjk=","avatar_url":"https://avatars3.githubusercontent.com/u/3109169?v=4","gravatar_id":"","url":"https://api.github.com/users/nimamahmoudi","html_url":"https://github.com/nimamahmoudi","followers_url":"https://api.github.com/users/nimamahmoudi/followers","following_url":"https://api.github.com/users/nimamahmoudi/following{/other_user}","gists_url":"https://api.github.com/users/nimamahmoudi/gists{/gist_id}","starred_url":"https://api.github.com/users/nimamahmoudi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nimamahmoudi/subscriptions","organizations_url":"https://api.github.com/users/nimamahmoudi/orgs","repos_url":"https://api.github.com/users/nimamahmoudi/repos","events_url":"https://api.github.com/users/nimamahmoudi/events{/privacy}","received_events_url":"https://api.github.com/users/nimamahmoudi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-12T23:06:44Z","updated_at":"2018-09-13T20:59:20Z","closed_at":"2018-09-13T17:19:36Z","author_association":"NONE","body":"Hi,\r\n\r\nIt seems like the publish returns true even if I explicitly return a nack for a message. for example I have queue with the following settings in a RabbitMQ server:\r\nargs = {\r\n                    'x-max-length': 10,  # maximum length of queue, will receive nack afterwards\r\n                    'x-overflow': 'reject-publish',  # Reject the new publish with a nack\r\n                    # 'x-message-ttl': 5000,\r\n                    # 'x-dead-letter-exchange': 'amq.direct',\r\n                    # 'x-dead-letter-routing-key': self.rpc_queue + '/dlx'\r\n                }\r\n\r\nBut even if the max-length is reached, the publish function returns true. I need this info to reject the process in my flask app.\r\n\r\nI also tried to add a consumer and explicitly nack the message with reque=False, still the sender has no idea. BTW, I started from the scalable rpc example and when the maximum queue length has reached, I want to reject the request.\r\nBTW, I also have called the channel.confirm_deliveries() method.\r\n\r\nIs there anything (like settings) that I have missed?"},"comment":{"url":"https://api.github.com/repos/eandersson/amqpstorm/issues/comments/421151208","html_url":"https://github.com/eandersson/amqpstorm/issues/62#issuecomment-421151208","issue_url":"https://api.github.com/repos/eandersson/amqpstorm/issues/62","id":421151208,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTE1MTIwOA==","user":{"login":"eandersson","id":3922797,"node_id":"MDQ6VXNlcjM5MjI3OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/3922797?v=4","gravatar_id":"","url":"https://api.github.com/users/eandersson","html_url":"https://github.com/eandersson","followers_url":"https://api.github.com/users/eandersson/followers","following_url":"https://api.github.com/users/eandersson/following{/other_user}","gists_url":"https://api.github.com/users/eandersson/gists{/gist_id}","starred_url":"https://api.github.com/users/eandersson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eandersson/subscriptions","organizations_url":"https://api.github.com/users/eandersson/orgs","repos_url":"https://api.github.com/users/eandersson/repos","events_url":"https://api.github.com/users/eandersson/events{/privacy}","received_events_url":"https://api.github.com/users/eandersson/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T20:59:20Z","updated_at":"2018-09-13T20:59:20Z","author_association":"OWNER","body":"Awesome! Glad you figured it out. I was suspecting something like that, but Google wasn't being helpful."}}
{"actor":{"display_login":"eandersson"}}