Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

Bursty prints #151

@hbradio

Description

@hbradio

The print statements from app.py appear in bursts, with long delays between bursts.

  • Even the initial "Starting rovercode service" print is delayed.
  • The problem seems to be only with printing -- the server still runs and responds to a GET on the / endpoint.
  • This does not seem to be related to @jeeshofone's logging changes in the upcoming systemd service installation. It happens now in the standard docker install.
  • Increasing the sensor polling period to 20 seconds did not improve the problem.
  • Commenting out all socketio.start_background_task() and socketio.run() made the problem go away.
  • Using the debugging server instead of eventlet behind socketio did not help.
  • This thread suggested sprinkling in some socketio.sleep(0)s to release the CPU. I put them a lot of places, with no effect.
  • That thread also suggested monkey_patching with eventlet. We should probably add that, but it didn't seem to fix the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions