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
update_latest_tariff_rate_discounts function is executed periodically
Actual Behavior
Exception triggered in handler.py in import_module_and_get_function at line 235: AttributeError: module 'updater.tasks.tariff_rate_discount' has no attribute 'update_latest_tariff_rate_di'
As you can see it is trying to run update_latest_tariff_rate_di but the correct name for that function is update_latest_tariff_rate_discounts
zappa status dev:
Possible Fix
I solved it for this particular case by replacing: updater.tasks.tariff_rate_discount.update_latest_tariff_rate_discounts by updater.tasks.tariff_rate_discount.update_latest in zappa_settings.json file and renaming the function
Your Environment
Zappa version used: 0.52.0
Operating System and Python version: Ubuntu 20.04 (Python 3.8.10)
Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.
Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue.
Expected Behavior
update_latest_tariff_rate_discounts
function is executed periodicallyActual Behavior
Exception triggered in
handler.py
inimport_module_and_get_function
at line235
:AttributeError: module 'updater.tasks.tariff_rate_discount' has no attribute 'update_latest_tariff_rate_di'
As you can see it is trying to run
update_latest_tariff_rate_di
but the correct name for that function isupdate_latest_tariff_rate_discounts
zappa status dev:
Possible Fix
I solved it for this particular case by replacing:
updater.tasks.tariff_rate_discount.update_latest_tariff_rate_discounts
byupdater.tasks.tariff_rate_discount.update_latest
inzappa_settings.json
file and renaming the functionYour Environment
0.52.0
Ubuntu 20.04
(Python 3.8.10)pip freeze
:zappa_settings.json
:The text was updated successfully, but these errors were encountered: