Last active
December 15, 2016 02:50
-
-
Save matt-baker/322931459dca30af16dd719d33b0baa8 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
#!/usr/local/bin/python | |
""" | |
Example Python script for parallel processing with Docker containers | |
""" | |
from os import environ | |
if __name__ == "__main__": | |
action = environ.get('action') # Will be passed in via Docker -e environment variable | |
if action == 'etl': | |
pass # Run ETL | |
elif action == 'analysis': | |
pass # Run analysis | |
else: | |
print('Action not supported') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment