For the parser, you need to implement pipelining:

  1. Download
  2. Parsing

The download process is multi-threaded. How to implement first download and after parsing? The parser is written in python.

    1 answer 1

    Bootloader actions

    1. Download file
    2. Put it in the queue for parsing

    Parser actions

    1. If the parsing queue is empty, then wait
    2. If not an empty parsit and return to item 1

    Split into two programs in order not to download the parser or to parse with the loader. Or are there pitfalls?

    • I just would not want to break into two scripts, because this parser will be a demon. - Loki
    • And more detail you can? And then "parser will be a demon" - does this mean "download" == "upload" (POST request) or what? Or something else? And what's the problem? - alexlz 2:44 pm
    • The solution has already been found by creating a download pool. A daemon is supposedly a always-running application that receives commands from outside. - Loki