Closed radumas closed 4 years ago
It's timing out
Tried increasing memory size, which might speed it up, and doubling time-out time.
Some recent change to the consolidation function appears to bugging out
[ERROR] TypeError: join() argument must be str or bytes, not 'NoneType'
Traceback (most recent call last):
File "/var/task/src/ttc_api_scraper/consolidate.py", line 123, in handler
_consolidate()
File "/var/task/src/ttc_api_scraper/consolidate.py", line 62, in _consolidate
scrape_path = os.path.join(dir, consoli_date)
File "/var/lang/lib/python3.7/posixpath.py", line 94, in join
genericpath._check_arg_types('join', a, *p)
File "/var/lang/lib/python3.7/genericpath.py", line 149, in _check_arg_types
(funcname, s.__class__.__name__)) from None
Just deployed fix.
It has only been successful 3 times in the last month... when it should be running daily.