Coder Social home page Coder Social logo

Comments (5)

FlorianJacta avatar FlorianJacta commented on July 2, 2024

Hi @Ginzou-3, why are you stopping the Core service and loading two different configurations?

Try to create only one configuration/TOML and load it once in your if __name__ == "__main__". Same thing for the run method. It should only be run once in your if __name__ == "__main__" and never stopped.

If not possible, please tell us what is your use case so we can understand it a bit better.

from taipy.

Ginzou-3 avatar Ginzou-3 commented on July 2, 2024

Hm okay i thought the config is like a changeable disk, like when i want to listen to another band, i change the CD.
For me a toml file was like a workflow. When I have a different workflow a change my toml. Thats why i stop my core, because i cant alter the config file when its running.

Idea: Get request for workflow 1 -> taipy loads the config -> let the scenario run -> return the output -> request for workflow 2 -> core stop -> load new config -> etc

from taipy.

FlorianJacta avatar FlorianJacta commented on July 2, 2024

The configuration is how you configure your application overall. Inside a unique application/configuration, you can have different workflows/scenarios.

@jrobinAV If you have anything to say, please do.

from taipy.

jrobinAV avatar jrobinAV commented on July 2, 2024

Not much to add...
The Config has been created to support multiple workflows (They are called ScenarioConfig).
If you want to create multiple workflows, you can create multiple ScenarioConfig in the global Config singleton. Then, you can instantiate as many scenarios as you want from any ScenarioConfig you created. You can run them, visualize the results, etc. of the various scenarios in the same application.

from taipy.

FlorianJacta avatar FlorianJacta commented on July 2, 2024

I am closing this issue as it is not a bug. However, if you have any remarks @Ginzou-3, you can create another issue to improve Taipy documentation or usability!

from taipy.

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.