{"_id":"iron_worker","_rev":"28-3c81d1d6845cbf7b0e212cac3dd9b4a6","name":"iron_worker","description":"Node client for IronWorker","dist-tags":{"latest":"0.1.8"},"versions":{"0.0.1":{"name":"iron_worker","version":"0.0.1","description":"Node client for IronWorker}","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.0.1"},"devDependencies":{"coffee-script":"1.3.3"},"repository":{"type":"git","url":"https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"_id":"iron_worker@0.0.1","dist":{"shasum":"4bc1de7005d2e224b69ed6525fc2714b43177c57","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.0.1.tgz","integrity":"sha512-JFRIlsBsAxtrfIYN7UDO1z2ApVaXIWGCY9QjOjjfMN3oXLlZ8QBtVXiM9E+tz2zodZ3BfuXZsCj4s69mi4+9uA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDT52Yngrb8FUbJ4SXDkk08E6N2pUoaUQQCrXydi9QjSAIhAJWsgDgPVhzaTFccSHa3+aeTU/dc71zTF427PzrpXffw"}]},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"directories":{}},"0.0.2":{"name":"iron_worker","version":"0.0.2","description":"Node client for IronWorker}","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.0.2"},"devDependencies":{"coffee-script":"1.3.3"},"repository":{"type":"git","url":"https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"_id":"iron_worker@0.0.2","dist":{"shasum":"9da7b632cd5473f6fa1a80086993b8d90796cc79","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.0.2.tgz","integrity":"sha512-rKYCUQYSfOvG+2YfISdzNPB4Xm/K40TQoB/BmzTZPshjW/+iX3+JGSOcikwoCMBkY6nQ1rbjGYZAY9vH1KGJIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICsT9hxdNrAmjz5n8Rx+FhxZSoukErycewTfnnHOzziSAiEAnMD8WLJKPGeip7+0+Br8MAQ1NhvJx+6BsRnjLGUz2dw="}]},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"directories":{}},"0.0.3":{"name":"iron_worker","version":"0.0.3","description":"Node client for IronWorker}","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.0.3"},"devDependencies":{"coffee-script":"1.3.3"},"repository":{"type":"git","url":"https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"_id":"iron_worker@0.0.3","dist":{"shasum":"1575ddd4dc1b061f539fabaa3d82ffe1c2455374","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.0.3.tgz","integrity":"sha512-u+cQnGxB0OivMVMY4Kl7UmurWNRuLauloQR1aJ7fpMmUP3YyC717JdqOvFIr7vuW9B/FpjHXS6+JeBUiqZH91Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDzaaT2vXpECsWaCknREWeKwRHgTQr3j+XGgRDknWouwIhAMebkJY+4E+cwfQ9kyPPjmNYRlyzGfFLtYQKRIRN8vty"}]},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"directories":{}},"0.1.0":{"name":"iron_worker","version":"0.1.0","description":"Node client for IronWorker}","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.1.0"},"devDependencies":{"coffee-script":"1.3.3"},"repository":{"type":"git","url":"https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"_id":"iron_worker@0.1.0","dist":{"shasum":"012631720cf7ddc647e7c7dccc679f69e73cdc64","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.1.0.tgz","integrity":"sha512-G9tSxgByhNHgN8LelSErAVfypUgnRNZUKeC9KCS85c5dTKgC2lW7k87Lm9R4eG460jD/RjZblPzBsh+FzEArZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD89gUPOawwaDkCTUxJuPqKA1028G2QJIRF7Vn2Qi8W7wIhAMaXwTLlxyeNv8MChdjClDpuJ39NVniGZLC+ilSDlWxU"}]},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"directories":{}},"0.1.1":{"name":"iron_worker","version":"0.1.1","description":"Node client for IronWorker}","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.2"},"devDependencies":{"coffee-script":"1.3.3"},"repository":{"type":"git","url":"https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"_id":"iron_worker@0.1.1","dist":{"shasum":"c141f0a7e09a783a85a9e4e92cc9b9c4162f1261","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.1.1.tgz","integrity":"sha512-+OeJcu9Lf7ALT/GPaZ0YvoyjXVSCtYvxhxuS3w1kY69mw+7xnAbBFOpBz18ur2y0jM5zRyuIphU9uy0I2CGOnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFFR0sbmYXTDz9jqbMhrzyxSCOrVNCH7THy+RLH1qjbAAiAzcmrfT4cSpK+CYC0htP+5v/+QdXmjb7yAVsL6W1zdBQ=="}]},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"directories":{}},"0.1.2":{"name":"iron_worker","version":"0.1.2","description":"Node client for IronWorker","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.2"},"devDependencies":{"coffee-script":"1.3.3"},"repository":{"type":"git","url":"https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"bugs":{"url":"https://github.com/iron-io/iron_worker_node/issues"},"_id":"iron_worker@0.1.2","dist":{"shasum":"17f6117211dc79ac92544be707f68c037209927b","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.1.2.tgz","integrity":"sha512-UMVUVYNMePZchpdng0CyANwbnPd2paOybEBfLbBXk4Se1g+9Q+MTHRuGvAfURbkoS7YcTZqhda/9DLvrrKhzZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6UgZS9dLk2jcytxxOTZjBOVdUKPmO/ogPXheKGEFfpAiEAkh5fHeBkI1wJzoXfxDma96KCO5P3ziTpT2JqZUxrskQ="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"iron-io","email":"dimitriy@iron.io"},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"directories":{}},"0.1.3":{"name":"iron_worker","version":"0.1.3","description":"Node client for IronWorker","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.2"},"devDependencies":{"coffee-script":"1.3.3"},"repository":{"type":"git","url":"https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"gitHead":"6166edfa69e51078c5348d4486e98f6fa9bba82f","bugs":{"url":"https://github.com/iron-io/iron_worker_node/issues"},"_id":"iron_worker@0.1.3","scripts":{},"_shasum":"5506721202b4e7e398b04332d3497f0c98da8918","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"iron-io","email":"dimitriy@iron.io"},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"dist":{"shasum":"5506721202b4e7e398b04332d3497f0c98da8918","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.1.3.tgz","integrity":"sha512-xgEzF14mkR5jKg7DQAXVMzzwATrlgWtzXhKG2XD/Dymsvj51SEuGeeKmt9QDYdutQlIXAzvwjdpNicg5ZtepHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiO7uQP2kNaSboyDDk57BBzYlBNZ0rZZIxixm25tZa6AIhANl7uBpZutRRvrWXeyWvKkzuzUFZatEmT7/0WHQHaBfg"}]},"directories":{}},"0.1.4":{"name":"iron_worker","version":"0.1.4","description":"Node client for IronWorker","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.2","needle":"0.7.8","ncp":"0.6.0","adm-zip":"0.4.4"},"devDependencies":{"coffee-script":"1.6.2"},"repository":{"type":"git","url":"https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"gitHead":"043ff9dc5ce75e6b7a72105def405c15e0e95531","bugs":{"url":"https://github.com/iron-io/iron_worker_node/issues"},"_id":"iron_worker@0.1.4","scripts":{},"_shasum":"436dc1e2465b678fac1ecf4f36d3c55cbda3bd89","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"iron-io","email":"dimitriy@iron.io"},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"dist":{"shasum":"436dc1e2465b678fac1ecf4f36d3c55cbda3bd89","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.1.4.tgz","integrity":"sha512-wzIuyCvotO6xJ57DYuSgaEDzOaRmNMfFV07pqReSxOoogzrsijVfSosR5ZSoF+D5iO9pU4ixh6N+OPld/ER6+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE+Mf4eYeX0GjqpygzHMFVLaA1Z7n5RRrdWzxCGdMrVZAiEA3AIt5n7ILp4l7rdqpHRLxD+h0Kg/XkBr6/OPqEkyihY="}]},"directories":{}},"0.1.5":{"name":"iron_worker","version":"0.1.5","description":"Node client for IronWorker","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.2","needle":"0.7.8","ncp":"0.6.0","adm-zip":"0.4.4"},"devDependencies":{"coffee-script":"1.6.2"},"repository":{"type":"git","url":"https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"gitHead":"b882c1ec25597ab8d2e3c631d3019ba67a6a8bc3","bugs":{"url":"https://github.com/iron-io/iron_worker_node/issues"},"_id":"iron_worker@0.1.5","scripts":{},"_shasum":"9c9804faf7c8a1538a50f050923175ac8b4e3571","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"iron-io","email":"dimitriy@iron.io"},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"dist":{"shasum":"9c9804faf7c8a1538a50f050923175ac8b4e3571","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.1.5.tgz","integrity":"sha512-MH5hAOinqRW6KKHegabgo8jUb2iT5I5YZZJ9DKJs5077DMdO1iUS/nXx0/ezJg8v/AJ0mr50isrnCMLj7V7WrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVzTFLMStYUvY4z7AVCG+XEMRocfZUGgXdrm8jI2D/kwIhAKihiNH8+abCK/M3dtAwAahjCB/b1uHV9w+dsenu5Rew"}]},"directories":{}},"0.1.6":{"name":"iron_worker","version":"0.1.6","description":"Node client for IronWorker","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.2","needle":"0.7.8","ncp":"0.6.0","adm-zip":"0.4.4"},"devDependencies":{"coffee-script":"1.6.2"},"repository":{"type":"git","url":"https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"gitHead":"d9467cca4383c65370893d563569ed5cb1ffa0c3","bugs":{"url":"https://github.com/iron-io/iron_worker_node/issues"},"_id":"iron_worker@0.1.6","scripts":{},"_shasum":"7434b9262fddeb7ed84b5e15af0c547e25352804","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"iron-io","email":"dimitriy@iron.io"},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"dist":{"shasum":"7434b9262fddeb7ed84b5e15af0c547e25352804","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.1.6.tgz","integrity":"sha512-mygfmlE8CNZCjliSWyaN1Q848r+kCCZJMLjSvC75r71wqunVvainxZKb0e41XW137Z7ZaysPb9R27UkIwuVezw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHrJZerX7Yve9AWq52M6kDGRDJa4cp9QXQK/c5SnUVv7AiEA2EymD/I+nUVwLpKytuKzvzWtiIlibMLJAKSLBaq4c70="}]},"directories":{}},"0.1.8":{"name":"iron_worker","version":"0.1.8","description":"Node client for IronWorker","homepage":"https://github.com/iron-io/iron_worker_node","author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"main":"./lib/client","dependencies":{"pkginfo":"0.2.3","underscore":"1.3.3","iron_core":"0.2","needle":"0.7.8","ncp":"0.6.0","adm-zip":"0.4.4"},"devDependencies":{"coffee-script":"1.12.7"},"repository":{"type":"git","url":"git+https://github.com/iron-io/iron_worker_node.git"},"engines":{"node":">= 0.6.0"},"gitHead":"4846254bbccd3e32c63cf58eaffee495883c7993","bugs":{"url":"https://github.com/iron-io/iron_worker_node/issues"},"_id":"iron_worker@0.1.8","scripts":{},"_shasum":"b96e03a298171228c84cad37e777ab1fa9c8c194","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"iron-io","email":"dimitriy@iron.io"},"dist":{"shasum":"b96e03a298171228c84cad37e777ab1fa9c8c194","tarball":"https://registry.npmjs.org/iron_worker/-/iron_worker-0.1.8.tgz","integrity":"sha512-y6JQQ+16/deJ9mj1xYp82M0G8O9+SIFhnuT6KKD4yXf0GLC0lWmykYDYI4LkUuYe35gp6fjhyKlr1lgk3XHG6w==","fileCount":12,"unpackedSize":51005,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbqncdCRA9TVsSAnZWagAAEmcP/A5sq9SAqrDilUvzJfya\na1wcDlGRpzKN+//6jW7Idje5ohNsCHbrMELbUUjfU93HH7Ca0AAci1AH30yy\nlhHNKZwmkDiqpPqUPUsApvwtj722gg6mTb5LMsiNHUjWlrxTuzLlko4mO0l4\nPvAWfFFv6/+jZbGrkkwC/AXyyflMhzu8a+UKl2ieiH6e0XbF0kIkQLCxhVoG\naTWRcM2D27Os8xfBQ0f/Rcdyz7VwsPjn7TWFwMq0dNuwHrkENWpGzmXpe2Pb\n7AyDR/SQBr90RmQsMRaYGDjfwnlqOrbgfglwvxRcyYNIFPRQ0jjF/qMV5lub\ndgg+mTR24TrdtRcqCWtpe4qYAYIAzaotIwk4mx85iq2x4qUn/s9bH6JrJtWi\n37IOT51fkwfBAcr/caWwpgxkUFgd+Av4PKQZyTTwLBog0Pi5pasngBIjJO2l\nBqafKrgvGLeASFd+G6qNPBpb4POlmPsJD/RSzrugqlmYsnH/csfzLUwi5oFw\nNIDOf5KinUO9fmovxE61eFlJi+QIQw1Js1qvRH7dRBsIeoXPGwEiFLAGIcUd\n70Ur2Ul1+u8N0WQnq058p7YO8nJ7iTirVjFKD48KU3TdrR0XgN5HayYuEqlw\ngK8L0EpAi2bE7CWmv+LPa9Ebbhkc64wZOeTFnTNMcX1BVQGFfFM6z+pKgijA\nuVTQ\r\n=cHLP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSGjQFIElNtjPCF8RgyHmNQBJI057Z+4LdlOoF1we7CAIhANejNN8jnm43awgAo21EmFGcdWozj5lffC+eMEoa+68T"}]},"maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iron_worker_0.1.8_1537898268143_0.3164109008386"},"_hasShrinkwrap":false}},"readme":"iron_worker_node is NODE.JS language binding for IronWorker.\n\nIronWorker is a massively scalable background processing system.\n[See How It Works](http://www.iron.io/products/worker/how)\n\n# Getting Started\n\n\n1\\. Install the gem:\n\n```\nnpm install iron_worker\n```\n\n2\\. [Setup your Iron.io credentials](http://dev.iron.io/mq/reference/configuration/)\n\n3\\. Create an IronWorker Client object:\n\n```javascript\nvar iron_worker = require('iron_worker');\nvar worker = new iron_worker.Client();\n```\n\nOr pass in credentials:\n\n```javascript\nvar worker = new iron_worker.Client({token: \"MY_TOKEN\", project_id: \"MY_PROJECT_ID\"});\n```\n\n## Creating a Worker\n\nHere's an example worker:\n\n```javascript\nconsole.log(\"Hello Node World!\");\n```\n\n## Upload code to server\n\n### Using CLI tool (preferred)\n\n* Get [CLI](http://dev.iron.io/worker/reference/cli) tool\n* Download or create `iron.json` config file with project_id/password\n* Create `HelloWorld.worker` file, example:\n\n```ruby\nruntime 'node'\nexec 'HelloWorld.js'\n```\n* Upload!\n\n```sh\n$ iron_worker upload HelloWorld\n```\n\n[.worker syntax reference](http://dev.iron.io/worker/reference/dotworker/)\n\n### Parsing payload, config within running worker\n\n* Add this library to list of dependencies (`package.json`):\n* Use it:\n\n```javascript\nvar iron_worker = require('iron_worker');\nconsole.log(iron_worker.params());\nconsole.log(iron_worker.config());\nconsole.log(iron_worker.taskId());\n```\n\n## Worker examples\n\nYou can find plenty of good worker examples here: [iron_worker_examples](https://github.com/iron-io/iron_worker_examples/tree/master/node)\n\n## Queueing a Worker\n\n```javascript\nworker.tasksCreate('HelloWorld', {}, {}, function(err,res){\n  task_id = res.id;\n  console.log(\"Pushed new task: task_id = \"+task_id);\n});\n```\nWorker should start in a few seconds.\n\nIf you need to pass some data you can use payload parameter\n\n```javascript\nvar payload = {first: 'Hello', second: 'World'};\nvar options = {priority: 1};\nworker.tasksCreate('HelloWorld', payload, options, function(error, body) {});\n```\n\n### Queueing Options\n\n  - **priority**: Setting the priority of your job. Valid values are 0, 1, and 2. The default is 0.\n  - **timeout**: The maximum runtime of your task in seconds. No task can exceed 3600 seconds (60 minutes). The default is 3600 but can be set to a shorter duration.\n  - **delay**: The number of seconds to delay before actually queuing the task. Default is 0.\n  - **label**: Optional text label for your task.\n  - **cluster**: cluster name ex: \"high-mem\" or \"dedicated\".  This is a premium feature for customers to have access to more powerful or custom built worker solutions. Dedicated worker clusters exist for users who want to reserve a set number of workers just for their queued tasks. If not set default is set to  \"default\" which is the public IronWorker cluster.\n\n\n## Status of a Worker\nTo get the status of a task and other info, you can use the ```tasksGet()``` method.\n\n```javascript\nworker.tasksCreate('HelloWorld', {}, {}, function(err,res){\n  task_id = res.id;\n  worker.tasksGet(task_id, function(error, res) {\n    console.log(\"Full info about the task:\\n\"+JSON.stringify(res));\n  });\n});\n```\n\n## Get Worker Log\n\nUse any function that print text inside your worker to put messages to log.\n\n```javascript\nworker.tasksCreate('HelloWorld', {}, {}, function(err,res){\n  task_id = res.id;\n  worker.tasksWaitForLog(task_id, {}, function (err, res) {\n    worker.tasksLog(task_id, function (err, res) {console.log(res)});\n  })\n});\n```\n\n## Scheduling a Worker\n\nLike with `tasksCreate`\n\n```javascript\nworker.schedulesCreate('HelloWorld', payload, {run_times: 10}, function(error, body) {});\n```\n\n### Scheduling Options\n\n  - **run_every**: The amount of time, in seconds, between runs. By default, the task will only run once. run_every will return a 400 error if it is set to less than 60.\n  - **end_at**: The time tasks will stop being queued.\n  - **run_times**: The number of times a task will run.\n  - **priority**: Setting the priority of your job. Valid values are 0, 1, and 2. The default is 0. Higher values means tasks spend less time in the queue once they come off the schedule.\n  - **start_at**: The time the scheduled task should first be run.\n  - **label**: Optional text label for your task.\n  - **cluster**: cluster name ex: \"high-mem\" or \"dedicated\".\n\n\n# Full Documentation\n\nYou can find more documentation here:\n\n* http://dev.iron.io Full documetation for iron.io products.\n* [IronWorker Node Examples](https://github.com/iron-io/dockerworker/tree/master/node)\n","maintainers":[{"name":"iron-io","email":"andrew@iron.io"}],"time":{"modified":"2022-06-19T02:34:35.960Z","created":"2012-07-08T01:49:16.803Z","0.0.1":"2012-07-08T01:49:19.173Z","0.0.2":"2012-07-08T01:57:31.967Z","0.0.3":"2012-07-10T03:46:01.685Z","0.1.0":"2012-07-16T23:20:21.106Z","0.1.1":"2012-07-22T09:26:59.263Z","0.1.2":"2014-02-17T11:52:29.627Z","0.1.3":"2014-12-26T07:45:28.578Z","0.1.4":"2015-03-11T06:09:28.338Z","0.1.5":"2015-07-10T12:13:25.360Z","0.1.6":"2015-07-23T13:06:25.200Z","0.1.8":"2018-09-25T17:57:48.343Z"},"author":{"name":"Andrew Kirilenko & Iron.io, Inc"},"repository":{"type":"git","url":"git+https://github.com/iron-io/iron_worker_node.git"},"readmeFilename":"README.md","homepage":"https://github.com/iron-io/iron_worker_node","bugs":{"url":"https://github.com/iron-io/iron_worker_node/issues"}}