imgman icon indicating copy to clipboard operation
imgman copied to clipboard

Deleting the Image Files After 30 minutes

Open kailashchoudhary11 opened this issue 2 years ago • 7 comments

Delete the SinImage Model After 30 minutes of creation and also delete the image file associated with it. Write a Custom Management Command. Use Cron For scheduling the task.

kailashchoudhary11 avatar Oct 22 '22 02:10 kailashchoudhary11

Hello, this is an interesting project ! I don't know django, but a few friends told me it's a very cool framework too.

I think I will join the discord and start working on it during next week

LoganTann avatar Oct 22 '22 08:10 LoganTann

Hello, this is an interesting project ! I don't know django, but a few friends told me it's a very cool framework too.

I think I will join the discord and start working on it during next week

Great! Let me know If you want to discuss something

kailashchoudhary11 avatar Oct 22 '22 09:10 kailashchoudhary11

Assign me @kailashchoudhary11

highb33kay avatar Oct 22 '22 15:10 highb33kay

Hi @highb33kay I see you were assigned to this issue, finally I don't think I will work on it.

Just sharing you some useful notes :

  • This project uses Cloudinary to store images (so images are not in the local storage, and you will have to use the Cloudinary Api)
  • You need to complete the task that deletes images : https://github.com/kailashchoudhary11/imgman/blob/master/sinimg/management/commands/delete-image.py
  • About making that task run every 30 minutes, keep in mind this project is hosted on Heroku (does not support Cron) and you may need to use a Timer (https://stackoverflow.com/a/14035296) or Heroku Scheduler (https://devcenter.heroku.com/articles/scheduler)

LoganTann avatar Oct 24 '22 07:10 LoganTann

how about celery?

UjjwalAggarwal-1 avatar Oct 25 '22 15:10 UjjwalAggarwal-1

how about celery?

How will you integrate it with heroku?

kailashchoudhary11 avatar Oct 25 '22 15:10 kailashchoudhary11

can't say. No idea. Less experience in deploying

UjjwalAggarwal-1 avatar Oct 25 '22 16:10 UjjwalAggarwal-1