Celery v4.0.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import, unicode_literals itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery 3.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import, unicode_literals itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2110 页 | 2.23 MB | 1 年前3
Celery v5.0.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2309 页 | 2.13 MB | 1 年前3
Celery v5.0.1 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery v5.0.2 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2313 页 | 2.14 MB | 1 年前3
Celery v5.0.5 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2315 页 | 2.14 MB | 1 年前3
ubuntu server guidein secure mode. 5.59684|Booting from SBE side 0 on master proc=00050000 5.60502|ISTEP 6. 5 - host_init_fsi 5.87228|ISTEP 6. 6 - host_set_ipl_parms 6.11032|ISTEP 6. 7 - host_discover_targets 6.67868|HWAS|PRESENT> OS [ 1280.465061219,5] OPAL: Switch to little-endian OS ln: /tmp/mountroot-fail-hooks.d//scripts/init-premount/lvm2: No such file or directory Internet Systems Consortium DHCP Client 4.4.1 Copyright [ 47.202736] /dev/loop3: Can't open blockdev [ 52.672550] cloud-init[3759]: Cloud-init v. 20.1-10-g71af48df-0ubuntu1 running 'init-local' at Wed, 18 Mar 2020 15:18:07 +0000. Up 51.87 seconds. ...0 码力 | 486 页 | 3.33 MB | 1 年前3
PyArmor Documentation v6.2.7Child Project Project Configuration File Man Page Common Options obfuscate licenses pack hdinfo init config build info check banchmark register download runtime Understanding Obfuscated Scripts Global scripts and all the required files are generated: dist/ myscript.py pytransform/ __init__.py _pytransform.so, or _pytransform.dll in Windows, _pytransform.dylib in MacOS following command to obfuscate a package: pyarmor obfuscate --recursive --output dist/mypkg mykpg/__init__.py To import the obfuscated package: cd dist python -c "import mypkg" Packing Obfuscated Scripts0 码力 | 159 页 | 123.91 KB | 1 年前3
ThinkJS 2.1 Documentationif you are not using ES6’s class grammar, you should not use constructor method. ThinkJS provide init method to replace constructor . It will called automatically whether you using class or not. Tips: think.base { /** * Initial method, called when class instanced * @return {} [] */ init(){ ... } } JavaScript Compile by Babel Replace */yield with async/await Upgrading Guide dynamically created do not, in order to perform the initialization uniformly, ThinkJS redefined it as init . This method is automatically called when the class is instantiated, without manually call needed0 码力 | 148 页 | 1.69 MB | 1 年前3
ThinkJS 2.0 Documentationif you are not using ES6’s class grammar, you should not use constructor method. ThinkJS provide init method to replace constructor . It will called automatically whether you using class or not. Tips: think.base { /** * Initial method, called when class instanced * @return {} [] */ init(){ ... } } JavaScript Compile by Babel Replace */yield with async/await Upgrade Guide dynamically created do not, in order to perform the initialization uniformly, ThinkJS redefined it as init . This method is automatically called when the class is instantiated, without manually call needed0 码力 | 141 页 | 1.61 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













