This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import absolute_import | |
from celery import Celery | |
import os | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'MY_PROJECT.settings') | |
from django.conf import settings | |
app = Celery('MY_PROJECT', include=['MY_MODULE.tasks'], broker=settings.BROKER_URL) | |
app.config_from_object('django.conf:settings') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3api list-objects --bucket YOURBUCKETNAME --output json --query "[sum(Contents[].Size), length(Contents[])]" |