python - Suggestions for a pluggable task framework in Django -


I am developing a website that aims to have multiple image processing algorithms (referred to as 'work') ) Is a GUI.

At the moment, only one of these algorithms is over, but more is to come (which will be similar but not at all, workflow)

Actually, the algorithm Works as follows (It is not that it matters a lot, but only for clarity): 1) Enter some parameters and an input image 2) Run algorithm part - Algorithm run - 3) Review an interim result 4 ) Parameter if required Edit, and go to 2. 5) Algorithm part 2 - Algorithm run - 6) Review the result 7) Adjust some interim results if necessary, and go to 5 8) All full

I hope some additional work There should be a similar work flow, though it is entirely possible that they will not.

Therefore, the easiest way to implement it is to separate a different app for each algorithm.

However, I browse through a sorted list (when complete) I want to be able to, and summarize for each of these tasks (name, description, start time, thumbnail).

Is there anyone who can give me some suggestions how can I apply it? I would like to keep it as simple as possible, so the extra work could possibly be 'plugged in' as 'easy'.

I have an app with a very clear definition of a task model

  • To run the function,
  • The task model can have properties for it:

    • Input logic,
    • that task was presented,
    • that work is actually running, and
    • the result (which A singleton will be like Task)> to finish the job

      You used turned on You may want to consider because:

      • Twisted been is an implementation of well designed and tested asynchronous functions; And
      • You can run the work on other processors or machines.

  • Comments