{"action":"opened","issue":{"url":"https://api.github.com/repos/vsivsi/meteor-job-collection/issues/143","labels_url":"https://api.github.com/repos/vsivsi/meteor-job-collection/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/vsivsi/meteor-job-collection/issues/143/comments","events_url":"https://api.github.com/repos/vsivsi/meteor-job-collection/issues/143/events","html_url":"https://github.com/vsivsi/meteor-job-collection/issues/143","id":124836315,"number":143,"title":"error tried everything - pls help","user":{"login":"vivekmago","id":896302,"avatar_url":"https://avatars.githubusercontent.com/u/896302?v=3","gravatar_id":"","url":"https://api.github.com/users/vivekmago","html_url":"https://github.com/vivekmago","followers_url":"https://api.github.com/users/vivekmago/followers","following_url":"https://api.github.com/users/vivekmago/following{/other_user}","gists_url":"https://api.github.com/users/vivekmago/gists{/gist_id}","starred_url":"https://api.github.com/users/vivekmago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivekmago/subscriptions","organizations_url":"https://api.github.com/users/vivekmago/orgs","repos_url":"https://api.github.com/users/vivekmago/repos","events_url":"https://api.github.com/users/vivekmago/events{/privacy}","received_events_url":"https://api.github.com/users/vivekmago/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-04T20:49:04Z","updated_at":"2016-01-04T20:49:04Z","closed_at":null,"body":"I am a noob trying to use the job collection and have tried everything but unable to get rid of errors below (not sure if my understanding is perfect or somethig else). Any help appreciated\r\n\r\n1) Trying to save a job like so\r\nvar myJobs =  JobCollection('urlprocesor');\r\nmyJobs.setLogStream(process.stdout);\r\n\r\nif (Meteor.isServer)\r\n{\r\n  Meteor.startup(function () {\r\n    // Start the myJobs queue running\r\n    myJobs.startJobServer({},function(){\r\n      console.log('server started');\r\n    job = new Job(myJobs,'sendEmail',{some:'data'});\r\n    job.save();\r\n    }); \r\n  });  \r\n}\r\n\r\nError: \r\nI20160104-15:43:53.471(-5)? Exception in setTimeout callback: Error: Match error: Failed Match.Where validation in field retries\r\nI20160104-15:43:53.471(-5)?     at check (packages/check/match.js:33:1)\r\nI20160104-15:43:53.471(-5)?     at JobCollectionBase._DDPMethod_jobSave (packages/vsivsi_job-collection/packages/vsivsi_job-collection.js:2515:1)\r\nI20160104-15:43:53.471(-5)?     at JobCollection.<anonymous> (packages/vsivsi_job-collection/packages/vsivsi_job-collection.js:3220:1)\r\nI20160104-15:43:53.471(-5)?     at packages/vsivsi_job-collection/packages/vsivsi_job-collection.js:3128:1\r\nI20160104-15:43:53.471(-5)?     at methodCall (packages/vsivsi_job-collection/packages/vsivsi_job-collection.js:36:1)\r\nI20160104-15:43:53.472(-5)?     at Job.save (packages/vsivsi_job-collection/packages/vsivsi_job-collection.js:1135:1)\r\nI20160104-15:43:53.472(-5)?     at server/jobserver.js:10:1\r\nI20160104-15:43:53.472(-5)?     at packages/vsivsi_job-collection/packages/vsivsi_job-collection.js:32:1\r\nI20160104-15:43:53.472(-5)?     at packages/vsivsi_job-collection/packages/vsivsi_job-collection.js:3125:1\r\nI20160104-15:43:53.472(-5)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)\r\n\r\n\r\n2) Trying to create a job using process Jobs (for same collection as above)\r\n\r\n  var workerQueue = myJobs.processJobs('cl',   {\r\n    concurrency: 4,\r\n    payload: 1,\r\n    pollInterval: 5000,\r\n    prefetch: 1\r\n  },\r\n  function(job,cb)\r\n  {\r\n        job.done();\r\n        cb();\r\n  });\r\n\r\n\r\nError\r\nW20160104-15:47:13.100(-5)? (STDERR) JobQueue: Received error from getWork():  { [Error: Match error: Failed Match.OneOf or Match.Optional validation]\r\nW20160104-15:47:13.100(-5)? (STDERR)   message: 'Match error: Failed Match.OneOf or Match.Optional validation',\r\nW20160104-15:47:13.100(-5)? (STDERR)   path: '',\r\nW20160104-15:47:13.100(-5)? (STDERR)   sanitizedError: \r\nW20160104-15:47:13.101(-5)? (STDERR)    { [Error: Match failed [400]]\r\nW20160104-15:47:13.101(-5)? (STDERR)      error: 400,\r\nW20160104-15:47:13.101(-5)? (STDERR)      reason: 'Match failed',\r\nW20160104-15:47:13.101(-5)? (STDERR)      details: undefined,\r\nW20160104-15:47:13.102(-5)? (STDERR)      message: 'Match failed [400]',\r\nW20160104-15:47:13.102(-5)? (STDERR)      errorType: 'Meteor.Error' },\r\nW20160104-15:47:13.102(-5)? (STDERR)   errorType: 'Match.Error' }\r\n"}}