flask sync run
Project description
flask simple sync work
example
from flask_kraken_wq import Queue,WorkTask
app = Flask(__name__)
from module import funname
from redis import Redis
@app.route('/')
def hello_world():
Queue(Redis()).add(funname)
return 'Hello World!'
### thread start work mode
WorkTask(connect=Redis(),flask_app=app).thread()
### working start mode
WorkTask(connect=Redis(),flask_app=app).start()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flask_kraken_wq-2021.8.16.tar.gz.
File metadata
- Download URL: flask_kraken_wq-2021.8.16.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4139ca966c11f47a1032b94dc5ecb6936fd28421e31d37cb5e1917fad912a58d
|
|
| MD5 |
bc6409bc60b376aeafcf3bbff4345926
|
|
| BLAKE2b-256 |
864594b13d885216391fcf5beb96b9c3316eade37519e7a48df236e9c268c32c
|
File details
Details for the file flask_kraken_wq-2021.8.16-py3-none-any.whl.
File metadata
- Download URL: flask_kraken_wq-2021.8.16-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1c6096f9ce92cef647ec6c522dea00559fc12c95dea2f72f9494d1c3c95e243
|
|
| MD5 |
8f817aac5028b4eed5ba745c36c80e07
|
|
| BLAKE2b-256 |
4093c1d977c491e4304e8ef1cd181010d5d5f781fec52b4b2689304b78fc22cd
|