Does Strategy Monitor skip running Daily strategy if Next Run is in the past?
Author: kazuna
Creation Date: 2/27/2018 10:21 PM
profile picture

kazuna

#1
I have seen some daily strategies on Strategy Monitor not running and those "Next Run" are set to the time in the past. Is this expected behavior?

I know Strategy Monitor updates "Next Run" time when the strategy is activated. However, I didn't need to manually activate the strategies when I restored StrategyMonitorConfiguration.xml from backup because those strategies have been activated already. Although those strategies were activated, the "Next Run" were set to the time in the past.

Interestingly, some strategies with "Next Run" time in the past ran without any issue. I cannot figure out how Strategy Monitor decides whether or not to skip the strategies those "Next Run" time set in the past.
profile picture

Eugene

#2
1. Have you tried to re-Activate those Strategies (disable / enable)?
2. Upon that, what does the log show?
profile picture

kazuna

#3
1. Once I re-activate those Strategies, Strategy Monitor updates "Next Run" time therefore it fixes the problem.
2. If the log file is wlp.txt, there is nothing logged at around that time.
profile picture

Eugene

#4
Glad that fixes it for you. If so no further action is required.

P.S. The log is the SM item log (right click > Enable logging for selected items). I think collecting it is not required anymore.
profile picture

kazuna

#5
QUOTE:
Glad that fixes it for you. If so no further action is required.

Does that mean Strategy Monitor requires the "Next Run" time to be set in the future in order to run at the next run time?

If you don't run WLP for couple of days, then the strategies on Strategy Monitor may not run unless you re-activate them and update "Next Run" time in the future?
profile picture

Eugene

#6
An Activated Strategy with missed Next Run (in the past) will re-run once WLP is restarted (just as expected). At least this is my experience.
profile picture

kazuna

#7
QUOTE:
An Activated Strategy with missed Next Run (in the past) will re-run once WLP is restarted (just as expected).

Yes, that's what I expected.

However, apparently there are cases where Strategy Monitor skips Strategy with missed Next Run (in the past).
When the problem happens, Next Run never ever updates even if WLP is restarted unless you update Next Run by reactivating the Strategy.
profile picture

Eugene

#8
I see. Maybe it had something to do with restoring StrategyMonitorConfiguration.xml from backup and not re-activating. Having the Strategy item log with a reproducible procedure might help in troubleshooting.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).