Try adding the on_disconnect method to your class. Maybe Twitter is turning you off (not a bug, not a timeout), and you are not coping with it. If you want, you can handle various Twitter errors.
def on_disconnect(self, notice): """Called when twitter sends a disconnect notice Disconnect codes are listed here: https://dev.twitter.com/docs/streaming-apis/messages#Disconnect_messages_disconnect """ return
Check out the streaming module tweepy for more information.
You can also try to enable block warnings in streamer.filter() . Below are all the parameters and their default values ββfrom the Tweepy source:
def filter(self, follow=None, track=None, async=False, locations=None, stall_warnings=False, languages=None, encoding='utf8'):
Luigi source share