human
I wrote the below code

    @app.task(name=u'celery.backend_cleanup', shared=False, lazy=False)
    def backend_cleanup():
        app.backend.cleanup()
    return backend_cleanup

What's a good function header?
assistant
#Here's a good function header.

@connect_on_app_finalize
def add_backend_cleanup_task(app):