Page MenuHomec4science

createJobs.py
No OneTemporary

File Metadata

Created
Fri, Apr 19, 04:13

createJobs.py

import git
def createJobs(base):
# create of job template object
job = base.Job()
repo = git.Repo.init('/home/richart/akantu-bare', bare=True)
commits = repo.iter_commits()
# specify a range of jobs
job["revision"] = [c.hexsha for c in commits]
job["ntasks"] = [1]
# creation of the jobs on the database
n_insertion = base.createParameterSpace(job)
return n_insertion

Event Timeline