Skip to content

Instantly share code, notes, and snippets.

@ttstarck
Created May 21, 2024 15:13
Show Gist options
  • Save ttstarck/cfc3b6e8d4066c3adf0f82dcc9d5e61a to your computer and use it in GitHub Desktop.
Save ttstarck/cfc3b6e8d4066c3adf0f82dcc9d5e61a to your computer and use it in GitHub Desktop.
import time
import faktory
with faktory.connection() as client:
while True:
client.queue("add", args=(1, 2), queue="default")
client.queue("subtract", args=(10, 5), queue="default")
client.queue("multiply", args=(8, 8), queue="default")
time.sleep(0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment