maestre3d / alexandria

The Alexandria Project is an open-source platform where people can share their knowledge through books, podcasts, docs and videos.
https://alexandria.damascus-engineering.com
GNU Affero General Public License v3.0
9 stars 1 forks source link

Cron job for entities with status pending #28

Open maestre3d opened 4 years ago

maestre3d commented 4 years ago

Is your feature request related to a problem? Please describe. Whenever a new entity is created, in most of the cases it will start a transaction. The problem here is sometimes there will be leftovers if some problem occurred.

Describe the solution you'd like It would be better if we implemented a cron job inside every service in a goroutine/thread that will run every X time (from min to days), where we could remove (hard-remove) every entity with the "STATUS_PENDING" state.

Describe alternatives you've considered Any.

Additional context No