public void Init() { // This is the IP address of my computer running Redis. server = "ec2-184-73-7-218.compute-1.amazonaws.com"; //server = "192.168.56.102"; Resque.setRedis(new Redis(server, 6379)); Resque.redis().FlushAll(); }
public void Init() { server = "ec2-184-73-7-218.compute-1.amazonaws.com"; //string server = "192.168.56.102"; Resque.setRedis(new Redis(server, 6379)); Resque.redis().FlushAll(); worker = new Worker("jobs"); //Job.create("jobs", "resque.DummyJob", 20, "/tmp"); }
public void Init() { // This is the IP address of my computer running Redis. server = "ec2-184-73-7-218.compute-1.amazonaws.com"; //server = "192.168.56.102"; Resque.setRedis(new Redis(server, 6379)); Resque.redis().FlushAll(); Exception ex = new Exception(testString); Worker worker = new Worker(); String queue = testString; payload = Encoding.UTF8.GetBytes(testString); myRedis = new Failure.Redis(ex, worker, queue, payload); }
public void Init() { String server = "ec2-184-73-7-218.compute-1.amazonaws.com"; //String server = "192.168.56.102"; new Redis(server, 6379).FlushAll(); // This is the IP address of my computer running Redis. Resque.setRedis(new Redis(server, 6379)); Resque.Push("people", new Dictionary <string, string>() { { "name", "chris" } }); Resque.Push("people", new Dictionary <string, string>() { { "name", "bob" } }); Resque.Push("people", new Dictionary <string, string>() { { "name", "mark" } }); }