codalab / codabench

Codabench is a flexible, easy-to-use and reproducible benchmarking platform. Check our paper at Patterns Cell Press https://hubs.li/Q01fwRWB0
Apache License 2.0
76 stars 28 forks source link

Convert orphan files deletion task to async using celery task. Update celery config to make it possible #1609

Closed Didayolo closed 1 month ago

Didayolo commented 1 month ago

Original PR

Description

Make the orphan files deletion task asynchronous. This comes with few changes to make it possible:

For testing

Do not forget to build the docker images !

Checklist

Didayolo commented 1 month ago

@OhMaley Error during the building:

=> ERROR [site_worker 7/9] RUN poetry lock                                1.7s
 => CANCELED [flower 7/9] RUN poetry add redis=3.0.1                       0.7s
------
 > [site_worker 7/9] RUN poetry lock:
1.366 The currently activated Python version 3.9.19 is not supported by the project (3.9.20).
1.366 Trying to find and use a compatible version. 
1.534 
1.535 Poetry was unable to find a compatible version. If you have one, you can explicitly use it via the "env use" command.
------
failed to solve: process "/bin/sh -c poetry lock" did not complete successfully: exit code: 1

Exited with code exit status 17

Any thoughts?

OhMaley commented 1 month ago

Oui il faut que la version de python noté dans le Dockerfile et dans pyproject.toml soit identique. Je l'ai update dans le dockerfile pour être la même version que celle du pyproject.toml, mais ce dernier fichier a été mis à jour il y a 4h on dirai. Il faut donc mettre à jour le dockerfile

Didayolo commented 1 month ago

Ce qui m'étonne c'est que je suis reparti de develop à l'instant. Mais ça devrait être bon maintenant j'imagine.

Didayolo commented 1 month ago

@bbearce How to solve the poetry lock? I not able to run the commands locally

bbearce commented 1 month ago
pyenv install 3.9.20
pyenv virtualenv 3.9.20 codabench_django
pyenv activate codabench_django
# pyenv uninstall codabench_django
poetry config virtualenvs.create false
poetry config virtualenvs.in-project false
poetry install # installs from lock file