Algorithms Broker - PARC-projects/video-query-home GitHub Wiki

The processes that compute matches for a query operate on two different query states, new or revised. When a query is submitted for revision or a new query is created in the web client project, the state of that query is stored in a database. In order to submit those queries to the processes that compute matches, the broker executes the following logic on a long polling timer.

  1. Initiates a logical loop every n-seconds. (n is currently set to 5 by setting the LOOP_EXECUTION_TIME variable in broker.py)
  2. Polls the API to get the latest query in a new or revised state.
  3. Hands the associated data to the compute_matches function.

The broker requires the API to be running. The broker runs in python 3.

python src\broker.py