Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F59017544
createJobs.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Apr 19, 04:13
Size
413 B
Mime Type
text/x-python
Expires
Sun, Apr 21, 04:13 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17106107
Attached To
R12526 perf-test-akantu
createJobs.py
View Options
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
Log In to Comment