Tutor contrib aspects plugin superset worker healthcheck fail

Hello

We recently added the tutor contrib aspects plugin on our platform. It is working correctly apart from when we ran out of memory which seems to have triggered the healthcheck in the superset-worker container. It is now failing over and over due to an incorrect celery command. Here is the error output:

 	You are using `-A` as an option of the inspect sub-command: celery inspect -A celeryapp <...> The support for this usage was removed in Celery 5.0. Instead you should use `-A` as a global option: celery -A celeryapp inspect <...> Usage: celery inspect [OPTIONS] COMMAND Try 'celery inspect --help' for help. Error: No such option: -A

I did some digging and it seems to be related to the healthcheck command being in the incorrect format. From the local-docker-compose-services in the tutoraspects/patches/ directory:

  healthcheck:
    test: ["CMD-SHELL", "celery inspect ping -A superset.tasks.celery_app:app -d celery@$$HOSTNAME"]

Has anyone ran into this problem? I can go ahead and modify this but if there is a better fix that would be great! Thanks

@Sara_Burns - any thoughts?

Hi @tech_mil - it looks like we upgraded to Celery 5.0 back in April so we must have missed changing this command. If you want to create a github issue here and create a PR with a proposed solution that would be great. Thanks for bringing this up!

i think it might be this code here: Code search results ยท GitHub

test: ["CMD-SHELL", "celery inspect ping -A superset.tasks.celery_app:app -d celery@$$HOSTNAME"]

should be:

test: ["CMD-SHELL", "celery -A superset.tasks.celery_app:app inspect ping -d celery@$$HOSTNAME"]