django - AWS Worker tier cron - server error #500 - "post http 1.1 500 AWS aws-sqsd/2.0" -


i'm trying set cronjob @ elastic beanstalk. task being scheduled. testing purposes should run every minute... not working. django app. app running in 2 environments, 1 worker , other 1 "hosting" application.

this part working. command running it's not being executed (the files not being deleted).

here views.py:

@login_required def delete_expired_files(request): users = demouser.objects.all() user in users: documents = document.objects.filter(owner=user.id) if documents: doc in documents: = timezone.now() if >= doc.date_published + timedelta(days = doc.owner.group.valid_time): doc.delete() return redirect("user_home")

cron.yml:

version: 1 cron:     - name: "delete_expired_files"          url: "http://networksapp.elasticbeanstalk.com/networks_app/delete_expired_files" schedule: "* * * * *"     

however, prints on log file @ access_log part : "post /myapp/management/commands/delete_expired_files http/1.1" 500 124709 "-" "aws-sqsd/2.0"

this log file accessing far: log file content

why it? how can fix it? thank much.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -