diff options
author | 2024-08-19 22:51:28 +0800 | |
---|---|---|
committer | 2024-08-19 22:51:28 +0800 | |
commit | 722fbfc6849444a558d2362e4cfbc0ca27558ee5 (patch) | |
tree | 2df12e2c9953deef03167a3c9f436f72cc550da4 /main.py | |
parent | ff8e06f2d495497d111e45f368b6c3bb1f9088c1 (diff) | |
download | miniflux-ai-722fbfc6849444a558d2362e4cfbc0ca27558ee5.tar.gz miniflux-ai-722fbfc6849444a558d2362e4cfbc0ca27558ee5.tar.zst miniflux-ai-722fbfc6849444a558d2362e4cfbc0ca27558ee5.zip |
limit max_workers to 4v0.5.1
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,7 +47,7 @@ while True: start_time = time.time() print(time.strftime("%Y/%m/%d %H:%M:%S", time.localtime()), 'Fetched unread entries: ' + str(len(entries['entries']))) if len(entries['entries']) > 0 else print(time.strftime("%Y/%m/%d %H:%M:%S", time.localtime()), 'No new entries') - with concurrent.futures.ThreadPoolExecutor() as executor: + with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor: futures = [executor.submit(process_entry, i) for i in entries['entries']] for future in concurrent.futures.as_completed(futures): try: |