Issue 1:
Checklist

I have checked the issues list

for similar or identical bug reports.

I have checked the pull requests list

for existing proposed fixes.

I have checked the commit log

to find out if the bug was already fixed in the master branch.

I have included all related issues and possible duplicate issues in this issue

(If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

#5940

Possible Duplicates

None

Description

In Calling Tasks:

You can also inspect the exception and traceback if the task raised an exception, in fact result.get() will propagate any errors by default:

>>> res = add.delay(2)
>>> res.get(timeout=1)

This example is not working as described because add.delay(2) results in the following error before the user is able to call res.get(timeout=1):

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/abd/python/celery/env/lib/python3.8/site-packages/celery/app/task.py", line 425, in delay
return self.apply_async(args, kwargs)
File "/home/abd/python/celery/env/lib/python3.8/site-packages/celery/app/task.py", line 530, in apply_async
check_arguments(*(args or ()), **(kwargs or {}))
TypeError: add() missing 1 required positional argument: 'y'

I suppose check_arguments() is a new function?

Suggestions

Change the example from:

>>> res = add.delay(2)
>>> res.get(timeout=1)

To an integer and string addition:

>>> res = add.delay(2, '2')
>>> res.get(timeout=1)

This way res = add.delay(2, '2') won't raise TypeError: add() missing 1 required positional argument: 'y'. And res.get(timeout=1) will propagate the following exception:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/abd/python/celery/env/lib/python3.8/site-packages/celery/result.py", line 221, in get
return self.backend.wait_for_pending(
File "/home/abd/python/celery/env/lib/python3.8/site-packages/celery/backends/asynchronous.py", line 195, in wait_for_pending
return result.maybe_throw(callback=callback, propagate=propagate)
File "/home/abd/python/celery/env/lib/python3.8/site-packages/celery/result.py", line 333, in maybe_throw
self.throw(value, self._to_remote_traceback(tb))
File "/home/abd/python/celery/env/lib/python3.8/site-packages/celery/result.py", line 326, in throw
self.on_ready.throw(*args, **kwargs)
File "/home/abd/python/celery/env/lib/python3.8/site-packages/vine/promises.py", line 244, in throw
reraise(type(exc), exc, tb)
File "/home/abd/python/celery/env/lib/python3.8/site-packages/vine/five.py", line 195, in reraise
raise value
TypeError: unsupported operand type(s) for +: 'int' and 'str'

Issue 2:
Checklist

I have checked the issues list

for similar or identical enhancement to an existing feature.

I have checked the pull requests list

for existing proposed enhancements.

I have checked the commit log

to find out if the if the same enhancement was already implemented in the

master branch.

I have included all related issues and possible duplicate issues in this issue

(If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

None

Possible Duplicates

None

Brief Summary

We need to remove the AMQP result backend as it was marked as deprecated in 4.0.

A deprecation message was printed for our users and therefore we can remove it.

Design

Architectural Considerations

None

Proposed Behavior

The AMQP result backend will no longer work and an error will be presented to the user.

Proposed UI/UX

When the backend is initialized, an ImproperlyConfigured exception is raised with the following message:

The AMQP result backend has been removed in 5.0.
Please use the RPC result backend or choose another result backend.

This message will be removed in 6.0.

Diagrams

N/A

Alternatives

None