You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rarely, it appears that BTE receives a query causing it to read the smartapi specs at the same time the cron job to update them is writing to the file, causing a SyntaxError with the message "unexpected end of JSON input".
This can be solved by caching the specs in redis and reading from that instead, while the cron job first writes the file, and then writes to redis. Redis handles ensuring read/write won't happen simultaneously.
The text was updated successfully, but these errors were encountered:
Rarely, it appears that BTE receives a query causing it to read the smartapi specs at the same time the cron job to update them is writing to the file, causing a SyntaxError with the message "unexpected end of JSON input".
This can be solved by caching the specs in redis and reading from that instead, while the cron job first writes the file, and then writes to redis. Redis handles ensuring read/write won't happen simultaneously.
The text was updated successfully, but these errors were encountered: