Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 414 Bytes

File metadata and controls

19 lines (17 loc) · 414 Bytes

Celery Learning

Commands:

  • docker-compose up --build
  • Keep Docker running (detached): docker-compose up -d
  • Shutdown dockers: docker-compose down

When adding a worker that is not inside the docker, we can use

celery_app = Celery(
    "tasks",
    broker="redis://localhost:6379/0",
    backend="redis://localhost:6379/0",
    include=[
        "group1.tasks",
        "group2.tasks",
    ],
)