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

Create cronjob or similar solution to clear database #11

Open
martink-rsa opened this issue Sep 26, 2022 · 5 comments
Open

Create cronjob or similar solution to clear database #11

martink-rsa opened this issue Sep 26, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@martink-rsa
Copy link
Contributor

We need a way to clear the database regularly.

@Fermain
Copy link
Contributor

Fermain commented Sep 26, 2022

We could provide a tutorial on local Postgres, this is how I run dev local.

@Fermain
Copy link
Contributor

Fermain commented Sep 26, 2022

Alternatively a docker container @jaaneh

@Fermain Fermain added the enhancement New feature or request label Sep 26, 2022
@Fermain
Copy link
Contributor

Fermain commented Nov 14, 2022

@martink-rsa @jaaneh Now we are using node-schedule could we achieve this from inside the app itself?

@jaaneh
Copy link
Collaborator

jaaneh commented Nov 14, 2022

@martink-rsa @jaaneh Now we are using node-schedule could we achieve this from inside the app itself?

I would probably want this to be done externally due to node-schedule being in-memory. It'll mess up on merges, no?

@jaaneh
Copy link
Collaborator

jaaneh commented Nov 14, 2022

https://render.com/docs/cronjobs is an option. We can have it run once a week/biweekly. Clear db & seed

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

No branches or pull requests

3 participants