Commit b50752ed authored by Jan Engels's avatar Jan Engels
Browse files

added expire tasks (2,3,4,6,9 months)

parent 4e016240
title.gettext expiration routine run every 2 months
/STEP1
@selection = select_subs (older ([creation_date]-2m))
send_msg (@selection, expire_warning1)
next ([execution_date]+3w, STEP2)
/STEP2
@selection = select_subs (older ([creation_date]-2m))
send_msg (@selection, expire_warning2)
next ([execution_date]+1w, STEP3)
/STEP3
@selection = select_subs (older ([creation_date]-2m))
@deleted = delete (@selection)
send_msg (@deleted, expire_deletion)
stop ()
title.gettext expiration routine run every 3 months
/STEP1
@selection = select_subs (older ([creation_date]-3m))
send_msg (@selection, expire_warning1)
next ([execution_date]+3w, STEP2)
/STEP2
@selection = select_subs (older ([creation_date]-3m))
send_msg (@selection, expire_warning2)
next ([execution_date]+1w, STEP3)
/STEP3
@selection = select_subs (older ([creation_date]-3m))
@deleted = delete (@selection)
send_msg (@deleted, expire_deletion)
stop ()
title.gettext expiration routine run every 4 months
/STEP1
@selection = select_subs (older ([creation_date]-4m))
send_msg (@selection, expire_warning1)
next ([execution_date]+3w, STEP2)
/STEP2
@selection = select_subs (older ([creation_date]-4m))
send_msg (@selection, expire_warning2)
next ([execution_date]+1w, STEP3)
/STEP3
@selection = select_subs (older ([creation_date]-4m))
@deleted = delete (@selection)
send_msg (@deleted, expire_deletion)
stop ()
title.gettext expiration routine run every 6 months
/STEP1
@selection = select_subs (older ([creation_date]-6m))
send_msg (@selection, expire_warning1)
next ([execution_date]+3w, STEP2)
/STEP2
@selection = select_subs (older ([creation_date]-6m))
send_msg (@selection, expire_warning2)
next ([execution_date]+1w, STEP3)
/STEP3
@selection = select_subs (older ([creation_date]-6m))
@deleted = delete (@selection)
send_msg (@deleted, expire_deletion)
stop ()
title.gettext expiration routine run every 9 months
/STEP1
@selection = select_subs (older ([creation_date]-9m))
send_msg (@selection, expire_warning1)
next ([execution_date]+3w, STEP2)
/STEP2
@selection = select_subs (older ([creation_date]-9m))
send_msg (@selection, expire_warning2)
next ([execution_date]+1w, STEP3)
/STEP3
@selection = select_subs (older ([creation_date]-9m))
@deleted = delete (@selection)
send_msg (@deleted, expire_deletion)
stop ()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment