Example of how to handle background processes with Flask, Redis Queue, and Docker
Spin up the containers:
$ docker-compose up -d --build
Open your browser to http://localhost:5004
Example of how to handle background processes with Flask, Redis Queue, and Docker
License: MIT License
Example of how to handle background processes with Flask, Redis Queue, and Docker
Spin up the containers:
$ docker-compose up -d --build
Open your browser to http://localhost:5004
Hi Michael, is it possible to pass the data back from ajax to flask view and render a template with a different URL? I want to check when the jobs are done, display a loading page, and then render the home.html with the results of the job.
When you try to build the docker image using the provided docker-compose
configuration file, the build will fail and exit with an error clearly caused by incompatibility with werkzeug
package as the trace show:
ImportError: cannot import name 'url_quote' from 'werkzeug.urls'
.
I've managed to fix it by just upgrading flask version to Flask==2.3.3
which is the latest version in 2.x.x series.
I looking same on kubernetes cluster.
Let me know if you have any suggestion
On using docker-compose up, it tries to pull web image which is not there and stops.
Pulling worker (web:)...
ERROR: pull access denied for web, repository does not exist or may require 'docker login'
Add error handlers on both the client in the AJAX requests as well as on the server for failed jobs.
I am trying to extend this template for my usecase.
Can you suggest an easy route for debugging the app, potentially with a capability to apply a breakpoint etc., maybe using VS code?
Could you show how to handle this additional service inside docker-compose?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.