diff --git a/packages/valory/skills/decision_maker_abci/states/sampling.py b/packages/valory/skills/decision_maker_abci/states/sampling.py index 6dc75af6..dbbf0846 100644 --- a/packages/valory/skills/decision_maker_abci/states/sampling.py +++ b/packages/valory/skills/decision_maker_abci/states/sampling.py @@ -58,18 +58,16 @@ def end_block(self) -> Optional[Tuple[BaseSynchronizedData, Enum]]: synced_data, event = cast(Tuple[SynchronizedData, Enum], res) + if event != Event.DONE: + return res + if synced_data.benchmarking_finished: - self.context.logger.info( - "No more markets to bet. The benchmarking has finished!" - ) return synced_data, Event.BENCHMARKING_FINISHED if synced_data.simulated_day: - self.context.logger.info( - "Entering the sampling Round for a new simulated day" - ) - # re-enter the SamplingRound return synced_data, Event.NEW_SIMULATED_RESAMPLE - if event == Event.DONE and self.context.benchmarking_mode.enabled: + + if self.context.benchmarking_mode.enabled: return synced_data, Event.BENCHMARKING_ENABLED + return res