9. Three classes (December 20)
17.3 / 17.4 cellery multi instance
Multiple worker s, multiple queues
[root@localhost celery]# cat tasks.py
#-*- coding:utf-8 -*-
from celery import Celery
app = Celery()
return x + y
Posted by neostrife on Tue, 05 May 2020 21:39:28 +0200
Air flow FAQ
1. ERROR "Python setup. Py XXX" appears during installation.
First, you need to update pip Version required'pip install --upgrade pip' command.
Second is setuptools The version is too old, so there are the following problems Command "python setup.py egg_info" failed with error code ...
Posted by ryanthegecko on Sun, 29 Dec 2019 18:31:02 +0100
We have many different tasks with different priorities, such as video upload and compression tasks, photo compression upload tasks and other unimportant tasks.These tasks take different time and require different worker s to process them.Just using celery's default queue won't ...
Posted by cohq82 on Mon, 15 Jul 2019 18:22:54 +0200
In the process of running programs, we often encounter time-consuming and resource-consuming operations. To avoid them blocking the main program, we often use multithreaded or asynchronous tasks.For example, in Web development, when a new user is registered, we usually send him an activation email, which is an IO blocking task. If you put it di ...
Posted by teng84 on Mon, 24 Jun 2019 18:34:46 +0200
1 Application Technology
2 Implementation process
2.1 CMDB Asset Management
2.1.1 Asset Input
Fill in the form on the front page.
Submit data to Django background.
Write to Mysql database through Django Orm o ...
Posted by herbal_lavender on Sat, 18 May 2019 08:39:29 +0200
Declare variables or constants
Variables are defined with var and constants are defined with let.
var myVariable = 42
myVariable = 50
let myConstant = 42
When the type variable or constant type is not specified, the system automatically infers the type of the variable or constant. If the type==myVariable=== is inferred as an i ...
Posted by kiss_FM on Sat, 11 May 2019 03:03:21 +0200
This article is mainly due to the plan to use django to write a planned task, which can rotate the name of the staff on duty or execute scripts on time and other functions. After Baidu has countless pits, it can finally make use of this set of things to deploy. My English is not good, English is good or people who want to learn ...
Posted by tinkertron on Fri, 10 May 2019 11:12:03 +0200