Permalink
Browse files

KnowsWhenItsWorking

  • Loading branch information...
1 parent 3ea97cb commit 8d406f6a4d6628e6ac875b2ca7d61d9fe000692c @chad committed Feb 10, 2010
Showing with 7 additions and 6 deletions.
  1. +2 −1 resque-sharp/Job.cs
  2. +5 −5 resque-sharp/Worker.cs
View
@@ -50,7 +50,8 @@ internal void perform()
System.Reflection.MethodInfo methodInfo = PayloadClass().GetMethod("perform", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.FlattenHierarchy);
if (methodInfo == null)
throw new NotImplementedException();
- methodInfo.Invoke(null, args().ToArray());
+ object[] parameters = new object[1]{args().ToArray()};
+ methodInfo.Invoke(null, parameters);
}
View
@@ -61,11 +61,11 @@ private void process(Job job, Func<Job, bool> block)
setWorkingOn(job);
job.perform();
}
- catch (Exception e)
- {
- job.fail(e);
- setFailed();
- }
+ //catch (Exception e)
+ //{
+ // job.fail(e);
+ // setFailed();
+ //}
finally
{
if (block != null)

0 comments on commit 8d406f6

Please sign in to comment.