Hi Chris
On 11 Feb 2015, at 09:24, Chris Bailiss <
cbai...@gmail.com> wrote:
> If I recall, late last year there were some occasions where the CIF daily update file failed to be produced and also a rather prolonged period where the weekly full file was repeatedly missed. Again if I recall correctly, this was all due to large timetable updates being processed back at NR which meant the whole export process for all the CIF file users (i.e. not just NROD) took longer, meaning the NROD CIF file arrived later than the time that the NROD CIF file processing job was scheduled for. As a result, we were a day behind on the daily file / there was only a very outdated full file (several weeks old) available for a time.
That’s correct - the CIF was processed “at midnight”, which naturally doesn’t cater for it being received from NR after midnight. I’m told it’s due to the architecture of the system and assumptions that were valid a couple of years ago.
> If I recall, you were going to speak to NR about the possibility of moving the NROD file higher in the export job. Also, there was talk of making the NROD CIF processing a bit more flexible, to work even if the NR file was late.
>
> I was wondering where this got to and what changes were made in the end?
There’s only so much flexibility NR have to prioritise the Open Data CIF over others - it’s currently at the highest available priority group, because there are other operational systems which need to receive data after TRUST does (such as automatic route setting systems in signal boxes). It’s hard to tell if this priority change has made a difference - the times that CIF files are produced depends on a number of factors we don’t have any visibility of, such as other users who want to receive a full extract that night, the volume of schedule updates etc.
One of the other changes, which I believe is in testing at the moment, is to make the CIF processing take place event-driven, rather than time-driven.
Related, one of the things I was mulling over was having the weekly CIF generated on a Sunday night, if that’s possible. I’m guessing there are fewer schedule updates taking place during Sunday than other days of the week, so it may spread the load of generating a full extract out to a day when it’s likely to get executed quicker.
Some other things that could (not necessarily will, as they’re less trivial code changes) be done are:
* Automatically FTP-ing CIF files out to users who are capable of receiving them automatically, so the data is received when it’s available
* Calling a URL on a client system to notify that the CIF file is ready
* Sending a message on a ‘notification’ queue when the CIF file is ready
Peter