Skip to content

Commit

Permalink
potential fix for the send update to cloud function
Browse files Browse the repository at this point in the history
  • Loading branch information
Al4ise committed Nov 29, 2024
1 parent e8ec025 commit 7974087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lumibot/strategies/strategy_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ def _run_trading_session(self):
break

# Send data to cloud every minute. Ensure not being in a trading iteration currently as it can cause an incomplete data sync
if ((not hasattr(self, '_last_updated_cloud')) or (datetime.now() - self._last_updated_cloud >= timedelta(minutes=1))) and (not self._in_trading_iteration):
if (not hasattr(self, '_last_updated_cloud')) or (datetime.now() - self._last_updated_cloud >= timedelta(minutes=1)):
self.strategy.send_update_to_cloud()
self._last_updated_cloud = datetime.now()

Expand Down

0 comments on commit 7974087

Please sign in to comment.