As a result of playing with ways to capture the event id, I fell upon a regime of having PHP query the API to carry out various tasks such as store the eventId in a stored value, apply a coupon to fetch certain markets in a certain timeframe, apply rules, then delete the older markets using a safe enough threshold to allow some post-market close routines to run. I had not used a coupon before, but it seemed very similar to applying market filters, with which I am familiar and which I used to apply with a keyboard shortcut. Working with a market filter I never had a problem, even though the market list was invariably larger - in each of three instances - than I ever have loaded now, in just a single BA instance.
After a variable period, maybe 12 hours, or 24 hours or occasionally more, I find that Guardian has effectively gone to sleep. The only logged action is the pre-off eventId sv generated by the API call above. These are all football markets, and I can even be watching an affected match, so I know that they haven't all be postponed. My csv exports, which are automatically added to a MySQL database, all reach the end of their logging for any market that they began, but after failure point no new events are even acknowledged, save repeated entries for the API-generated eventId. These are the result of a Windows scheduled task running the API calls every 15 minutes. This has a typical runtime of 5-12 seconds and never coincides with any other scheduled tasks. (EDIT: I originally quoted runtime for a different task)
The market additions and deletions continue to work perfectly, in accordance with the thresholds set. All rules are applied accurately. There is nothing different about anything that is either performed or happens before the fail.
Sometimes it is falling asleep with no more than 300 markets in. I am not restricting the refresh, and have experimented with Guardian refresh interval, which has been set on 20ms since I can remember, but this seems to make no difference.
Any ideas? BA's workload must be a fraction of what it used to be. The detailed log for the API call lists all numbers which make sense with what I see. All rules are definitely being applied. The only remedy is to shut town BA and restart.
Even stupid suggestions welcome!
