Last active
December 15, 2015 17:09
-
-
Save carimura/5294704 to your computer and use it in GitHub Desktop.
That should create a task with a timeout of 1 minute.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var worker = require("iron_worker"); | |
var client = new worker.Client({"project_id": "my project ID", "token": "my token"}); | |
client.tasksCreate("myWorker", "payload", {"timeout": 60}, function(error, response) { | |
// callback for when the task has been posted, with the response | |
}); | |
small correction: added 'new' in front of worker.Client
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
timeout value is in seconds