buildBeat method
Builds a Beat for app, wired with a Redis leader lock and
persisted last-run state so a second beat process started by accident
sits idle instead of double-firing every entry. Register your
periodic entries on the result before calling run.
Implementation
Beat buildBeat(GisilaQueue app) => Beat(
app,
tickInterval: tickInterval,
lockTtl: lockTtl,
lock: RedisBeatLock(host: redisHost, port: redisPort, prefix: prefix),
stateStore: RedisBeatStateStore(
host: redisHost, port: redisPort, prefix: prefix),
);