Skip to content

KeyError job_dict["state"] + strange DB Entry #176

Description

@oleweidner

This error was reported in bigjob-users by Scott Michael:

KeyError in agent:

  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/threadpool.py", line 156, in run
    result = request.callable(*request.args, **request.kwds)
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/bigjob/bigjob_agent.py", line 720, in start_new_job_in_thread
    if(job_dict["state"]==str(bigjob.state.Unknown)):
KeyError: 'state'
Traceback (most recent call last):
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/threadpool.py", line 156, in run
    result = request.callable(*request.args, **request.kwds)
  File "/N/soft/rhel6/python/2.7.3/lib/python2.7/site-packages/bigjob/bigjob_agent.py", line 720, in start_new_job_in_thread
    if(job_dict["state"]==str(bigjob.state.Unknown)):
KeyError: 'state'

Strange CU description in Redis:

instead of:

 {'Executable': '/N/dc2/projects/BDBS/cijohnson//dorunner.sh', 
'WorkingDirectory': 
'/N/dc2/projects/BDBS/cijohnson//./lp4.0058bm6.8292', 
'NumberOfProcesses': '1', 'start_time': '1390836474.31', 
'Environment': "['TASK_NO=4687']", 'state': 'Unknown', 'Arguments': 
"['/N/dc2/projects/BDBS/cijohnson/./lp4.0058bm6.8292 
tu1783717_58.in\\n']", 'Error': 'tu1783717_58.err', 'Output': 
'tu1783717_58.out', 'job-id': 
'sj-976b4976-8767-11e3-adde-001fc6d94bec', 'SPMDVariation': 'single'} 

this:

 {'a': 'd', 'c': '-', 'b': 'e', 'd': 'e', 'f': 'c', '-': '0', '3': 
'-', '1': 'e', '0': '1', 's': 'j', '7': 'f', '6': 'd', '9': '4', '8': 
'7'} 

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions