Skip to content

Instantly share code, notes, and snippets.

@sznurek
Created July 26, 2012 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sznurek/3182352 to your computer and use it in GitHub Desktop.
Save sznurek/3182352 to your computer and use it in GitHub Desktop.
Example worker
import sys
for line in sys.stdin.readlines():
parts = line.split()
uid = int(parts[0])
msg = ' '.join(parts[1:])
print("%d Hello user %d! Message: %s" % (uid, uid, msg))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment