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
flask_kraken_wq-0.0.3.tar.gz
(2.7 kB
view details)
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-0.0.3.tar.gz.
File metadata
- Download URL: flask_kraken_wq-0.0.3.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 |
47920534e2ee2f99c8a209d7618d805055d165701435b752573e60decd372c78
|
|
| MD5 |
15b81cc053c2e1032e7ff37028783019
|
|
| BLAKE2b-256 |
4af4f13ac6344e09e38122a91149a94b28d852e9adb92ef4fab9f0f74495b1df
|
File details
Details for the file flask_kraken_wq-0.0.3-py3-none-any.whl.
File metadata
- Download URL: flask_kraken_wq-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
000d4f25a3c99d6d29619a4e7e4a7d7b27e38e58f7b6b4d7cdb698d6229d211e
|
|
| MD5 |
0ac8ab0e451f24d28bb0790cca91129c
|
|
| BLAKE2b-256 |
f36f73f64be3e8e23122de9a8381efc9a4b334a5295de2408cbb1e8c7c02ec12
|