ClockGU / ClockGU/clockwork-backend

Automated Petition Expiry & Reminders (Watcher Service)

Open
#66 0 comments 0 reactions 1 assignee Claimed by @zakriya057 View on GitHub
New feature
Dominant language
Python
Stars
0
Forks
0
Avg merge
1m
Merged PRs (30d)
2

Description

Description Implement a background Cron Job ("Smart Watcher") to manage stale petitions.

**Technical Implementation:**

Schema: Create a Petition_Monitors table (FK to petitions) to store
stage_entered_at and reminder_count(how many times email has been sent) Whenever the status of the petition is changed the table of Petiton_Monitor will be reset.

Cron Job: Runs hourly or after every 5 hours or once per day to either inform the user or delete petition.
In consts.py we will write the rules for every status -> how many times user should be informed at this stage. i.e When approver asks for a revision and supervisor hasn't done the changes he should be informed more times before deleting the petition instead of a student.
We will control the number of times the user is informed from consts.py so we can change it later. If the threshold is met petition will be deleted by the watcher and everyone will be informed about this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.