Git Product home page Git Product logo

codo-task's Introduction

任务系统

部署文档

此系统尽量分布式安装

修改配置

  • 对settings 里面的配置文件进行修改,主要是数据库 缓存 消息队列
  • 修改 doc/nginx_ops.conf 的server_name 例如 改为 task.opendevops.cn 可以不修改,只要在内部DNS可以解析到对应地址
  • 修改 doc/supervisor_ops.conf 内容来控制任务并发数量 【exec_task】 默认10,建议根据服务器配置,和资源利用率进行修改

编译镜像

docker build . -t codo_task_image

docker 启动

此处要保证 变量正确

docker-compose up -d

创建数据库

create database `do_task` default character set utf8mb4 collate utf8mb4_unicode_ci;

初始化表结构

docker exec -ti codo-task_codo_task_1  /usr/local/bin/python3 /var/www/codo-task/db_sync.py

重启

docker-compose  restart

测试

curl -I -X GET -m 10 -o /dev/null -s -w %{http_code} http://task.opendevops.cn:8020/are_you_ok/

查看日志

tailf /var/log/supervisor/task_scheduler.log  #确认没报错
tailf /var/log/supervisor/task_other.log  #确认没报错
tailf /var/log/supervisor/exec_task.log   #执行任务的日志

启动后访问地址为 task.opendevops.cn:8020 在API网关上注册,注册示例参考API网关

注册网关

参考api网关

License

Everything is GPL v3.0.

codo-task's People

Contributors

ss1917 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.