{"action":"opened","issue":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/2015","repository_url":"https://api.github.com/repos/arangodb/arangodb","labels_url":"https://api.github.com/repos/arangodb/arangodb/issues/2015/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangodb/issues/2015/comments","events_url":"https://api.github.com/repos/arangodb/arangodb/issues/2015/events","html_url":"https://github.com/arangodb/arangodb/issues/2015","id":172844592,"number":2015,"title":"job.abort() - cannot convert object to primitive value","user":{"login":"wizzl35","id":7398168,"avatar_url":"https://avatars.githubusercontent.com/u/7398168?v=3","gravatar_id":"","url":"https://api.github.com/users/wizzl35","html_url":"https://github.com/wizzl35","followers_url":"https://api.github.com/users/wizzl35/followers","following_url":"https://api.github.com/users/wizzl35/following{/other_user}","gists_url":"https://api.github.com/users/wizzl35/gists{/gist_id}","starred_url":"https://api.github.com/users/wizzl35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wizzl35/subscriptions","organizations_url":"https://api.github.com/users/wizzl35/orgs","repos_url":"https://api.github.com/users/wizzl35/repos","events_url":"https://api.github.com/users/wizzl35/events{/privacy}","received_events_url":"https://api.github.com/users/wizzl35/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-24T01:26:11Z","updated_at":"2016-08-24T01:26:11Z","closed_at":null,"body":"## my environment running ArangoDB\r\nI'm using the latest ArangoDB of the respective release series:\r\n- [ ] 2.8\r\n- [X] 3.0\r\n- [ ] self-compiled devel branch\r\n\r\nOn this operating system:\r\n- [ ] DCOS on\r\n  - [ ] AWS\r\n  - [ ] Azure\r\n  - [ ] own infrastructure\r\n- [X] Linux \r\n  - [ ] Debian .deb\r\n  - [X] Ubuntu .deb\r\n  - [ ] SUSE   .rpm\r\n  - [ ] RedHat .rpm\r\n  - [ ] Fedora .rpm\r\n  - [ ] Gentoo\r\n  - [ ] docker - official docker library\r\n  - [ ] other:\r\n- [ ] Windows, version: \r\n- [ ] MacOS, version:\r\n\r\n### Foxx-related issue\r\n\r\nThe documentation for [Scripts and queued jobs](https://docs.arangodb.com/3.0/Manual/Foxx/Scripts.html#aborting-a-job) on aborting a job shows a function ```abort()``` that should be available for a job instance.  When the function is called I get this stacktrace:\r\n```\r\nArangoError 3103: failed to invoke module\r\nFile: /var/lib/arangodb3-apps/_db/brain/test_app/APP/scripts/setup.js\r\nCause: TypeError: Cannot convert object to primitive value\r\n    at hasOwnProperty (native)\r\n    at global.DEFINE_MODULE.exports.flatten (/usr/share/arangodb3/js/common/bootstrap/modules/internal.js:1493:39)\r\n    at action (/usr/share/arangodb3/js/server/modules/@arangodb/foxx/queues/index.js:195:29)\r\n    at ArangoDatabase._executeTransaction (/usr/share/arangodb3/js/server/modules/@arangodb/arango-database.js:119:10)\r\n    at Job.abort (/usr/share/arangodb3/js/server/modules/@arangodb/foxx/queues/index.js:187:8)\r\n    at Object.<anonymous> (/var/lib/arangodb3-apps/_db/brain/archive/APP/scripts/setup.js:48:6)\r\n    at Module._compile (/usr/share/arangodb3/js/common/bootstrap/modules.js:593:6)\r\n    at Object.Module._extensions..js (/usr/share/arangodb3/js/common/bootstrap/modules.js:613:10)\r\n    at Module.load (/usr/share/arangodb3/js/common/bootstrap/modules.js:544:34)\r\n    at FoxxService.run (/usr/share/arangodb3/js/server/modules/@arangodb/foxx/service.js:397:12)\r\n```\r\n\r\nI am running the latest and greatest ArangoDB 3.0.5.\r\n\r\nOn a side-note, I am trying to abort very simple test scripts.  Only one is running while the rest are queued.  I cannot figure out how to cancel the scripts.  They run fine and complete via CLI calls.\r\n\r\nIs there a way to cancel jobs or queues from arangosh?\r\n\r\nThanks for the help!"}}
{"actor":{"display_login":"wizzl35"}}