Skip to content

Add scan free trial user worker

毛超请求将scan-free-trial-user合并到main-jh

relate https://jihulab.com/gitlab-cn/gitlab/-/issues/3701+

depend on

What does this MR do and why?

add scan free trial user worker

  • run at 0 20 * * * which is UTC time, run everyday 4 in early morning
  • business scenario in #3701 description
  • high level logic explanation
    • build paid_user_hash from all namespaces of paid plan + paid ci + paid storage
    • build expired_user_hash from all namespaces of expired plan + expired storage (ci doesn't expire)
    • loop all human but not forbidden user, find out free trial start date
    • do block or send free trial email logic if need
TianLu 编辑于

合并请求报告

加载中