Skip to content

GithubImport::ObjectCounter use same TTL when read

Luke Duncalfe requested to merge ld-github-object-counter-ttl into master

What does this MR do and why?

This MR changes GithubImport::ObjectCounter to use the same Redis cache expiry time when reading a value as when setting it.

This fixes a bug where viewing the summary for an import would set the data to expire a day later, when the import would still be in progress. In large imports that take place over multiple days, this can result in data expiring while the import is still taking place #427097 (comment 1615773392).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports