Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify a job post owner that their post is about to become inactive after X days #72

Open
cannikin opened this issue May 3, 2022 · 2 comments

Comments

@cannikin
Copy link
Member

cannikin commented May 3, 2022

Right now a job post would be live on the site forever. This feature would automatically make it inactive after 30 days. The owner can come to the site, or click a link in the email, to extend the "active" time another 30 days.

@cannikin cannikin changed the title Notify a job post owner that their post is about to become inactive after 30 days Notify a job post owner that their post is about to become inactive after X days May 3, 2022
@aggmoulik
Copy link

@cannikin I can work on this. Do you have any point to add as what we should here for notification.

@cannikin
Copy link
Member Author

cannikin commented May 9, 2022

Thanks! We've got an email lib in there already, and it's sending notices when you create a job or job profile. You'll see there's an email service that sends them. We'd probably want a job that runs every 24 hours to check if any jobs are going to expire in the next 3 days or something and send out a notification. Netlify has some kind of scheduled job runner now, I figured we'd use that.

There's no concept of expiration n the database currently, so I'd probably add an expiresAt column and set it to 30 days in the future when the job is created. If you follow a link in the email to make the job live for another 30 days, it just resets that expiresAt value to another 30 days in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants