- Getting a CLI Shell to talk to the Faktory job server:
cat <(echo "HELLO {\"wid\":\"4qpc2443vpvai\", \"labels\": [\"golang\"]}") - | nc localhost 7419
- First, open a persistent connection via Netcat to the Faktory job server:
$> cat <(echo "HELLO {\"wid\":\"4qpc2443vpvai\", \"labels\": [\"golang\"]}") - | nc localhost 7419 #=> +HI {"v":"1"} #=> +OK - Then, PUSH a job to the end of the queue, with at least the minimum parameters of
jid,jobtype,args:$> PUSH { "jid": "123861239abnadsa", "jobtype": "TestJob", "args": ["hello"]} #=> +OK - Open
localhost:7420and see that your job has been enqueued with Faktory.