Code Monkey home page Code Monkey logo

celery_minimal_dockerized_netology's Introduction

1. Запускаем redis

docker-compose --env-file .env.test up redis

в выводе должна присутсвовать строка

celery_minimal_dockerized_netology-redis-1  | ............ * Ready to accept connections

2. Запускаем celery

в другой вкладке терминала запускаем celery

docker-compose --env-file .env.test up celery

должен получится вывод без ошибок наподобие такого:

celery_minimal_dockerized_netology-celery-1  |  -------------- celery@e763174649e8 v5.2.7 (dawn-chorus)
celery_minimal_dockerized_netology-celery-1  | --- ***** ----- 
celery_minimal_dockerized_netology-celery-1  | -- ******* ---- Linux-5.4.0-135-generic-x86_64-with-glibc2.31 2022-12-26 07:03:39
celery_minimal_dockerized_netology-celery-1  | - *** --- * --- 
celery_minimal_dockerized_netology-celery-1  | - ** ---------- [config]
celery_minimal_dockerized_netology-celery-1  | - ** ---------- .> app:         __main__:0x7f41504f5ab0
celery_minimal_dockerized_netology-celery-1  | - ** ---------- .> transport:   redis://db-redis:6379/1
celery_minimal_dockerized_netology-celery-1  | - ** ---------- .> results:     redis://db-redis:6379/2
celery_minimal_dockerized_netology-celery-1  | - *** --- * --- .> concurrency: 12 (prefork)
celery_minimal_dockerized_netology-celery-1  | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
celery_minimal_dockerized_netology-celery-1  | --- ***** ----- 
celery_minimal_dockerized_netology-celery-1  |  -------------- [queues]
celery_minimal_dockerized_netology-celery-1  |                 .> celery           exchange=celery(direct) key=celery

3. Запускаем приложение

в другой вкладке терминала запускаем приложение

docker-compose --env-file .env.test up app

В выводе должны получить:

celery_minimal_dockerized_netology-app-1  | Hello World
celery_minimal_dockerized_netology-app-1  | Hello World
celery_minimal_dockerized_netology-app-1  | Hello World
celery_minimal_dockerized_netology-app-1  | Hello World
celery_minimal_dockerized_netology-app-1 exited with code 0

celery_minimal_dockerized_netology's People

Contributors

tabelsky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.