Skip to content

You cannot grab this job. #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jebba opened this issue Jul 6, 2015 · 2 comments
Open

You cannot grab this job. #136

jebba opened this issue Jul 6, 2015 · 2 comments

Comments

@jebba
Copy link

jebba commented Jul 6, 2015

Somehow a bot may get itself into a state where it logs to info.log this error:

[2015-07-06 15:08:48,772] ERROR: API: You cannot grab this job.
[2015-07-06 15:08:48,775] ERROR: {'api_call': 'grabjob', 'can_slice': False, 'job_id': u'202274', '_client_version': '0.5.3', '_client_name': 'Bumblebee', 'api
_output': 'json', '_uid': u'[random string]', '_local_ip': '[the ip]', 'bot_id': u'236'}

When it gets in the state, the fix is to set the job_id to 0 and it will start picking up jobs again. In the database run:

UPDATE bots SET job_id=0 WHERE NAME="BOTNAME";

For "BOTNAME" use the name of the bot, for example, for bot G1:

UPDATE bots SET job_id=0 WHERE NAME="G1";

@StanleyT
Copy link

StanleyT commented Jul 9, 2015

The indicators of how this issue comes up from the user side is that the job will be picked up by a bot, but instead of given the status of "taken" the status will change to "available" and be returned to jobs on deck. the above issue was caused when the bot was power cycled after accepting the job, though the job stays in "available" status

@Jnesselr
Copy link
Contributor

Jnesselr commented Aug 5, 2015

I found the location where deleting the queue would cause this issue in the old code. I still cannot for the life of me find any other location it happens in.

@StanleyT It sounds like the job is getting reset but the bot for whatever reason isn't. It might be a client and server thing, I can't tell. It looks like we're going to have better data consistency in the new code.

@Jnesselr Jnesselr modified the milestone: 1.0 Sep 29, 2015
@Jnesselr Jnesselr removed this from the 1.0 milestone Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants