Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

KnowsWhenItsWorking

  • Loading branch information...
commit 8d406f6a4d6628e6ac875b2ca7d61d9fe000692c 1 parent 3ea97cb
@chad authored
Showing with 7 additions and 6 deletions.
  1. +2 −1  resque-sharp/Job.cs
  2. +5 −5 resque-sharp/Worker.cs
View
3  resque-sharp/Job.cs
@@ -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
10 resque-sharp/Worker.cs
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.