Преглед на файлове

Added blurb about workers and apscheduler

deadtom преди 1 месец
родител
ревизия
3e1d977763
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      README.md

+ 2 - 0
README.md

@@ -104,6 +104,8 @@ You can do this with a small modification to this command:
 env/bin/python -m gunicorn --error-logfile ownchatbot.log -b 0.0.0.0:8081 -w 1 'ownchatbot:create_app()'
 ```
 
+**A caveat here:** Some features are managed by a module called apscheduler. I chose this for its simplicity, however, it doesn't play well when trying to run the app with more than one worker. The "-w 1" option in the gunicorn command specifies just one worker. If you run it with more, it will multiply the jobs that apscheduler manages. For example, "-w 4" will start four workers, and every job apscheduler performs will get run four times. OCB will continue to function fine, but you'll see fun things like announcements getting repeated four times, and viewers getting awarded four times your configured points awards. OCB isn't yet so huge that it really needs more than one worker, but at some point I might try to move away from apscheduler.
+
 ## Final configuration
 Once OwnchatBot is running, you can start setting up your rewards and other options via the Management Panel at the URL provided by the install script. Authentication is handled using your Owncast server as an IndieAuth server. Your login credentials are the same credentials you use to log into your Owncast Admin page.