Created
October 22, 2015 18:47
-
-
Save saml/0ebd65637f71d0144327 to your computer and use it in GitHub Desktop.
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
def _s3_push(self, payload): | |
log.info('S3 PUSH %s', payload.source_url) | |
def _s3_push_dummy(self, payload): | |
log.info('S3 PUSH DUMMY %s', payload.source_url) | |
s3_push = _s3_push \ | |
if config['AWS_ACCESS_KEY_ID'] and config['AWS_SECRET_ACCESS_KEY'] \ | |
else _s3_push_dummy | |
task(bind=True)(s3_push) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment