Giter Club home page Giter Club logo

Comments (6)

viniciuschiele avatar viniciuschiele commented on July 18, 2024

Why are you starting 4 process when you only need one running?

from flask-apscheduler.

JASON0916 avatar JASON0916 commented on July 18, 2024

Eh, it's my fault. I didn't make the problem clear enough. I suppose there are 4 process working, apscheduler and flask work in the same process(the specific one of four process) and the other three are pure flask process.
the question is the same as question on StackOverFlow

from flask-apscheduler.

JASON0916 avatar JASON0916 commented on July 18, 2024

Now my partner and i try to solve this problem by using 4 process running flask application and 1 process running flask and apscheduler to manage the period task of flask application.

from flask-apscheduler.

JASON0916 avatar JASON0916 commented on July 18, 2024

Sorry for my poor English T^T , if you have good solution please tell me. Thank you honestly!

from flask-apscheduler.

viniciuschiele avatar viniciuschiele commented on July 18, 2024

The only reason I see to spawn more process is because your Flask app is growing, so I do recommend to split up your project, one only for scheduling and another one for the Flask app.

Another solution would be running one process for the Flask APScheduler using one port (e.g 5001) and running 4 process for the Flask App using another port (e.g 5000), it seems you are trying to do it.

from flask-apscheduler.

JASON0916 avatar JASON0916 commented on July 18, 2024

Ok👌. Thank you for your advice sincerely, that's helpful, also thanks for the flask-apscheduler, that's great.

from flask-apscheduler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.