Skip to content
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

Migrate to directory of pickled obj #21

Open
aterrel opened this issue Feb 23, 2012 · 1 comment
Open

Migrate to directory of pickled obj #21

aterrel opened this issue Feb 23, 2012 · 1 comment
Assignees

Comments

@aterrel
Copy link
Contributor

aterrel commented Feb 23, 2012

Convert all the shelve scripts over to the new dir of pickled objects.

@ghost ghost assigned Jlong591 Apr 23, 2012
@Jlong591
Copy link

trouble with database: when updating with pickled jobs, run into 'mem_LowTotal' is an invalid keyword argument for this function when running the following code (line 155 in the script I just pushed to my git)

job_dict = {
'system': system,
'acct_id': a_job.id,
'owner': owner,
'queue': a_job.acct['queue'],
'queue_wait_time': a_job.start_time - a_job.acct['submission_time'],
'begin': a_job.start_time,
'end': a_job.end_time,
#'nr_bad_hots': nr_bad_hosts,
'nr_slots': a_job.acct['slots'],
'pe': a_job.acct['granted_pe'],
'failed': a_job.acct['failed'],
'exit_status': a_job.acct['exit_status'],
}
job_dict.update(job.JobAggregator(a_job).stats)
#newJob.nr_hosts = len(a_job.hosts)
try:
newJob = tsm_Job(**job_dict)
newJob.save()
except DatabaseError,TypeError:
print "Error on job,", a_job.id
transaction.rollback()

(note, got this from your build_database.py).

Could it be an issue with what job objects I pickled and the stats in them? I just don't know where to start looking so some direction on this would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants