Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support delay over http post

  • Loading branch information...
commit 193647edb2a4a6ca4d63bb68c705b4ec8b129b95 1 parent 664cdae
@jeffutter jeffutter authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/http/routes/json.js
View
2  lib/http/routes/json.js
@@ -1,4 +1,3 @@
-
/*!
* kue - http - routes - json
* Copyright (c) 2011 LearnBoost <tj@learnboost.com>
@@ -135,6 +134,7 @@ exports.createJob = function(req, res) {
var options = body.options || {};
if (options.attempts) job.attempts(parseInt(options.attempts));
if (options.priority) job.priority(options.priority);
+ if (options.delay) job.delay(options.delay);
job.save(function(err) {
if (err) return res.send({ error: err.message }, 500);
Please sign in to comment.
Something went wrong with that request. Please try again.