You're offline — showing cached data

Life Manager Task Cleanup

life-manager-task-cleanup
2026-06-13 06:11:47 SAST
← Back to Tasks

Auto-close open Life tickets when their source Outlook email was actioned by Elmar (replied / forwarded / archived out of Inbox / permanently deleted). Gmail-backed Life tickets are currently skipped because this task queries Microsoft Graph email status only.

Each Outlook ticket created by life-manager-scan embeds source-aware metadata (**Email Source:** Outlook, **Email Message ID:**outlook:, and `**Provider Message ID:** `<id>) and also preserves the legacy **Outlook Message ID:**`` header for cleanup/UI compatibility. This task scans open Life tickets every 30 min, queries Graph for the raw provider message id from either header style, and closes the ticket when Elmar has clearly dealt with the email — so he doesn't have to manually check off duplicate work.

Source: MC-2700.

Every 30 minutes*/30 * * * *
Yes
shell
300s
No
in 18m (2026-06-13 06:30)

Task Definition

tasks/life-manager-task-cleanup.md
shell
set
No
No
cd /home/lucienne/workspace && python3 scripts/life_manager.py auto-close-emails

Edit Schedule

Result:
349
Runs (7d)
349
Completed
0
Failed
0
Timeout
100%
Success (7d)
17s
Avg Duration
life cleanup mc-2700

Run History (50)

StartedFinishedStatusDurationOutputLog
11m ago 11m ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 45 }
View log
42m ago 41m ago completed 20s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 45 }
View log
1h ago 1h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
2h ago 2h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
2h ago 2h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
3h ago 3h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
3h ago 3h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
4h ago 4h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
4h ago 4h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
5h ago 5h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
5h ago 5h ago completed 24s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
6h ago 6h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
6h ago 6h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
7h ago 7h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
7h ago 7h ago completed 22s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
8h ago 8h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
8h ago 8h ago completed 23s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
9h ago 9h ago completed 20s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 44 }
View log
9h ago 9h ago completed 20s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 43 }
View log
10h ago 10h ago completed 20s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 43 }
View log
10h ago 10h ago completed 21s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 43 }
View log
11h ago 11h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 43 }
View log
11h ago 11h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 43 }
View log
12h ago 12h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 43 }
View log
12h ago 12h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 42 }
View log
13h ago 13h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 42 }
View log
13h ago 13h ago completed 21s
{ "closed": [ { "ticket": "MC-5044", "reason": "email replied", "msg_id": "AAkALgAAAAAAHYQDEapmE ...
View log
14h ago 14h ago completed 20s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 28, "scanned": 43 }
View log
14h ago 14h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 42 }
View log
15h ago 15h ago completed 19s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 27, "scanned": 42 }
View log
15h ago 15h ago completed 17s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 24, "scanned": 38 }
View log
16h ago 16h ago completed 17s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 24, "scanned": 38 }
View log
16h ago 16h ago completed 17s
{ "closed": [ { "ticket": "MC-5033", "reason": "email replied", "msg_id": "AAkALgAAAAAAHYQDEapmE ...
View log
17h ago 17h ago completed 17s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 24, "scanned": 39 }
View log
17h ago 17h ago completed 18s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 24, "scanned": 38 }
View log
18h ago 18h ago completed 18s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 24, "scanned": 38 }
View log
18h ago 18h ago completed 14s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 20, "scanned": 34 }
View log
19h ago 19h ago completed 14s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 20, "scanned": 33 }
View log
19h ago 19h ago completed 15s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 20, "scanned": 33 }
View log
20h ago 20h ago completed 15s
{ "closed": [ { "ticket": "MC-5017", "reason": "email replied", "msg_id": "AAkALgAAAAAAHYQDEapmE ...
View log
20h ago 20h ago completed 14s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 20, "scanned": 33 }
View log
21h ago 21h ago completed 14s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 20, "scanned": 33 }
View log
21h ago 21h ago completed 14s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 19, "scanned": 31 }
View log
22h ago 22h ago completed 14s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 19, "scanned": 31 }
View log
22h ago 22h ago completed 14s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 19, "scanned": 31 }
View log
23h ago 23h ago completed 13s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 19, "scanned": 31 }
View log
23h ago 23h ago completed 15s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 19, "scanned": 31 }
View log
24h ago 24h ago completed 13s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 19, "scanned": 31 }
View log
1d ago 1d ago completed 13s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 19, "scanned": 31 }
View log
1d ago 1d ago completed 16s
{ "closed": [], "skipped": [], "untouched_with_msg_id": 19, "scanned": 31 }
View log

Comments (0)

No comments yet — add instructions for Luci
Help