Use celery.app instead of deprecated celery.task package for task and Task.