Code Monkey home page Code Monkey logo

fastapi_tm_celery's Introduction

README

A demo that use the celery

  • GitHub version
  • MIT licensed
  • Github Repo Gitee Repo

keywords

environment

command

# run beat task
celery -A server:beat_app beat -l INFO
# open another shell
celery -A server:beat_app worker -l INFO -C 2/4/8

# run commonly task
celery -A server:app worker -l INFO -c 2/4/8

dir and file

project file

deploy and dir

build and run

# download docker and docker-compose

# create docker network: example
docker network create --driver bridge --subnet xxxxxx --gateway xxxxxxxx xxxxxxxx

# mkdir project dir
mkdir /srv/project && cd /srv/project && mkdir conf/fastapi_tm_celery -p

# clone source code
git clone this project fastapi_tm_celery

## edit config settings
# reference resources ./docs/deploy/docker-compose.yaml
touch docker-compose.yaml

# reference resources ./conf/product.toml ./conf/test.toml
touch conf/fastapi_tm_celery/product.local.toml
touch conf/fastapi_tm_celery/test.local.toml

# reference resources ./docs/deploy/docker-entrypoint.sh
touch conf/fastapi_tm_celery/docker-entrypoint.sh

# build and start
docker-compose up -d --build

the project dir example

.
├── fastapi_tm_celery
├── conf
│   ├── fastapi_tm_celery
│   │   ├── product.local.toml
│   │   └── test.local.toml
│   └── fastapi_tm_redis
│       └── redis.conf
├── data
│   ├── fastapi_tm_rabbitmq
│   │   └── mnesia
│   └── fastapi_tm_redis
│       └── data
│           └── dump.rdb
├── docker-compose.yaml
└── logs
    └── fastapi_tm_celery
        └── x.log

fastapi_tm_celery's People

Contributors

panla avatar

Watchers

 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.