Cron::Sequencer - replaying crontabs (and the pitfalls on the way)

von Nicholas Clark (London.pm)

Cron::Sequencer - replaying crontabs (and the pitfalls on the way) richtet sich an Alle und wird in English gehalten. Der Talk beginnt am 28.02.2023 um 11:00 Uhr und dauert 40 Minuten. Er findet im Raum 1 statt.

PayProp's batch systems are scheduled by crontabs. We want to be able to replay history to test refactored code against the original, to give us coverage for corner cases - especially the unknown unknowns.

Knowing when a given crontab line runs - plenty of choices.
But putting different commands in crontab in order - nothing did this.

Hence Cron::Sequencer.

This talk starts with an overview of the module and the problems it sets out to solve. But "no plan survives contact with the enemy" - when the code was 80% complete I realised I needed to redesign the internals. So the second 80% of the talk covers how I solved this, explaining several obscure but very useful features of Getopt::Long


Tags: cron getopt::long

Teilnahmeinteresse: