fsr / infoscreen

🖥 Der BananaPi powered Infoscreen im FSR-Büro
https://infoscreen.ifsr.de
10 stars 0 forks source link

Added some simple async stuff. #17

Closed JustusAdam closed 8 years ago

JustusAdam commented 8 years ago

Parallelized the IO calls.

The four API calls in the controller are now being executed in parallel.

You can see them running in parallel if you set simple_async.EMIT_NOTIFICATIONS to True before calling the controller.

Output from my terminal:

17:49:33 Thread GET MEALS has started
17:49:33 Thread POSTILLON has started
17:49:33 Thread DEPARTURES has started
17:49:33 Thread NEWS has started
17:49:33 Thread NEWS finished
17:49:33 Thread GET MEALS finished
17:49:34 Thread POSTILLON finished
17:49:39 Thread DEPARTURES finished
JustusAdam commented 8 years ago

It is astonishing how much slower the dvb API really is ...

h4llow3En commented 8 years ago

Thanks, but please do not do our work. We were just facing the problem of parallelization.

JustusAdam commented 8 years ago

There was no issue, how was I supposed to know ... 😣

h4llow3En commented 8 years ago

Yes there were no Issues because originally there was just the team of us three who had really good communication. Would you like to join us, @JustusAdam, so we could keep up with the communication to avoid conflicts like this?

JustusAdam commented 8 years ago

What do you have? A slack channel?

h4llow3En commented 8 years ago

Well we mostly talk in person. :laughing: The rest is discussed a Telegram Group

Feliix42 commented 8 years ago

But we can arrange a Slack group. Or Gitter. Or whatever 😄

Feliix42 commented 8 years ago

I created a channel, you have been invited. :)