Using AWS worker to delete old DB entries?

I have an app on AWS using Elastic Beanstalk/RDS/EC2/etc.

The app has some database entries that need to be deleted after a certain time. I've tried to set up a cron task on the main server, but found that the web server cannot handle tasks like this, and a worker has to be created instead.

So, after writing up a quick worker based on this document, it seems that I cannot have the worker connect the existing database.

Am I overthinking this? I just need a way to have traffic come in, interact with the website, and then delete entries over time as they become irrelevant.


Category: amazon web services Time: 2016-07-28 Views: 0

Related post

  • How do I prevent the Browser and Dolphin HD from deleting old history entries? 2012-06-15

    So I've noticed that for both the default browser and for the Dolphin HD browser, all the history entries get deleted when you go beyond a certain number of pages visited. Does anyone know how I can prevent this from happening? I often do like to loo

  • Delete old Backup Files in SharePoint 2015-10-30

    I want to use PowerShell script which delete old Backup Files in SharePoint2010 Backup Folder. I've found this script: # Location of spbrtoc.xml $spbrtoc = "\\XXX\spbrtoc.xml" # Days of backup that will be remaining after backup cleanup. $days =

  • BATCH - Create a backup, then after n created, delete old backups 2016-05-09

    Premise: Script to run every n seconds which will create a backup of a defined file to a defined location. After n backups have been created, clean(delete) out dated ones. Problem: I have managed to get working a version of this to backup a folder an

  • Using logrotate to ONLY delete logs that are managed/rotated by another service 2015-05-21

    There are many programs out there that manage log file rotation by themselves. Many of them however only rotate the log and never delete them, and assume that is just part of the sysadmin's job and he/she will backup or delete as necessary. My questi

  • logrotate :: How to delete old logs in a logfile after logfile size reaches 1M size 2015-07-01

    How can I keep log file size limited to 1M? I want to delete old log entries in a log file after log file size reaches 1M size. I do not want to delete the log file itself. --------------Solutions------------- Here's one way. [[email protected] tmp]# ls

  • I upgraded Ubuntu on my laptop and I have to use the old GRUB entry for it to work 2010-12-11

    I upgraded Ubuntu on my laptop and I have to use the old boot link for it to work. How can I make my laptop automatically use the working boot-up? When I use the new GRUB entry the screen goes blank and the computer seems to hang. --------------Solut

  • How can I delete old entries in locales_source 2015-01-28

    Drupal 7. I have used the t() function to translate many string in different languages. I used English as default language, and added t('This is a new string') all around my module files, template files, etc. The problem is that I have changed the or

  • Delete old columns from table using hook update 2015-04-16

    I need to delete some old columns of existing table. How to do it using hook_update or Is there some other way to delete old columns in .install file . Thanks --------------Solutions------------- You can use function db_drop_field() /** * Implements

  • Deleting Old Kernels But Saying I Dont Have Correct Permissions 2010-08-21

    Every time I install a new Linux kernel, it gets left in the grub_config, making the boot menu longer each time. I know I can manually search through the installed packages and remove them. Does Ubuntu provide any easier way to clean them up or keep

  • Delete specific conntrack entries? 2012-03-08

    in a multi-ISP configuration, I'm routing and NATing specific traffic, e.g. VoIP, through specific interface - to a distinct provider. When one of the interfaces (or routes) becomes unavailable, all connections that were using it have to be dropped,

  • vmware esxi 5, cant create snapshots and consolidate fails, how to delete old or consolidate redo logs? 2012-07-14

    I have a VM that seems to be working ok, but when VMWare DR (or I) tries to create a snap shot, it fails, and when I view the summary page of the VM it has a warning at the top showing that the disks need to be consolidated. So I go to snapshot manag

  • Automatically delete old items from s3 bucket 2011-01-12

    Is there an easy way to set up a bucket in s3 to automatically delete files older than x days? --------------Solutions------------- Amazon now has the ability to set bucket policies to automatically expire content:

  • Delete old JetPack Site Stats? encrypted_search_terms in top search terms 2012-04-22

    I created a new baseball website. To create the site, I basically just duplicated my football site and changed/modified the theme. Being that I simply copied a site, all of the JetPack Site Stats reference the old football site stats. So, top posts,

  • Automatically deleting old files from recycling bin while keeping the new ones? 2012-06-09

    I want an explorer add-on which will delete old files from recycling bin after a time period. For example, I want to set the time limit to 30 days. When I delete a file in Windows, the software will keep a record of its delete-time. Every day, it wil

  • Delete old usenet threads 2012-07-27

    Logged in at Google, I can delete old messages in Google Groups that were written by me. Is there a way to remove a complete thread that was opened by me (years ago) directly on the NNTP server that hosts this group? Where can I get informations abou

  • Removing old kernel entries in Grub 2012-08-15

    This question already has an answer here: How do I remove old kernel versions to clean up the boot menu? 34 answers I regularly delete old kernels leaving only the latest two entries using Synaptic. I'm using Precise. However in my Grub "previous Lin

  • How to mass delete old reports? Options 2013-05-24

    I want to mass delete old reports that haven't been run in over a year. I am not a developer and do not want to learn IDE Eclipse. Is there another way using the DataLoader? --------------Solutions------------- With the summer 14 release, You can del

  • Delete old log files in AIX 2013-05-30

    I am trying write a script to delete old log files in \var\log\applog\nmon on my AIX system. We usually get alerts that the file system is almost full and at the moment delete old files by hand. So basically what i am looking for is a script that I c

  • Database restore without deleting old database 2014-01-24

    I've done a copy of my database, using SQL Server 2008 R2 (DB -> Tasks -> Back Up). Now I'm trying to restore it (DB -> Tasks -> Restore DataBase). But SQL Studio give me an error and say, that I need to delete old DB to do it. How to restore

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 2.041 (s). 13 q(s)