0

I have a platform where I want to launch as a separate thread a Faust consumer. Anyway, from the documentation I always find asynchronous implementation where the consumer is running on a process, but there is no mention about a solution for multithreading. So, when I define my Faust app, and then use annotation with

@app.agent(topic)

I get the following error

@app.agent(topic)
NameError: name 'topic' is not defined

Could someone guide me in this? I am not an expert on asynchio library.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Andrea Fresa
  • 351
  • 2
  • 18
  • 1
    You may want to take a look at the [hello_world.py](https://github.com/faust-streaming/faust/blob/master/examples/hello_world.py) example to get the `app.topic` semantics down. – wbarnha Oct 17 '22 at 23:46

0 Answers0