Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
b14e27be
Commit
b14e27be
authored
Oct 03, 2010
by
Maude Le Jeune
Browse files
Merge branch 'master' of git@gitorious.org:pipelet/pipelet
parents
cfc43bdb
baea1871
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
pipelet/launchers.py
pipelet/launchers.py
+5
-1
scripts/pipeletd
scripts/pipeletd
+4
-5
setup.py
setup.py
+1
-1
No files found.
pipelet/launchers.py
View file @
b14e27be
...
...
@@ -282,7 +282,11 @@ def launch_ccali(pipe, n, address=('127.0.0.1',5000), authkey='secret', job_dir=
'-a'
,
address
[
0
]]
+
b
,
stdin
=
subprocess
.
PIPE
)
s
.
communicate
(
input
=
pickle
.
dumps
(
pipe
))
for
i
in
range
(
n
):
import
re
l
=
subprocess
.
Popen
([
'qjob'
,
'-wide'
,
'-nh'
],
stdout
=
subprocess
.
PIPE
).
communicate
()[
0
]
existing_process
=
re
.
findall
(
'%s([0-9]*)'
%
job_name
,
l
)
starting_num
=
max
([
int
(
p
)
for
p
in
existing_process
])
+
1
for
i
in
range
(
starting_num
,
starting_num
+
n
):
name
=
'%s%d'
%
(
job_name
,
i
)
jobfile
=
get_log_file
(
pipe
,
name
+
'.job'
)
errfile
=
jobfile
.
replace
(
'job'
,
'err'
)
...
...
scripts/pipeletd
View file @
b14e27be
...
...
@@ -78,9 +78,7 @@ def main(options, args):
SchedulerManager
.
register
(
'get_scheduler'
,
callable
=
lambda
:
s
)
mgr
=
SchedulerManager
(
address
=
(
options
.
address
,
options
.
port
),
authkey
=
'secret'
)
server
=
mgr
.
get_server
()
mgr
.
start
()
print
"Started"
# Now that logging is set up decouple from parent environnement
...
...
@@ -89,8 +87,9 @@ def main(options, args):
redirect_stream
(
sys
.
stderr
,
None
)
os
.
chdir
(
WORKDIR
)
server
.
serve_forever
()
sched_proxy
=
mgr
.
get_scheduler
()
sched_proxy
.
run
()
except
BaseException
,
e
:
logger
.
critical
(
str
(
e
))
finally
:
...
...
setup.py
View file @
b14e27be
...
...
@@ -13,5 +13,5 @@ setup(name='pipelet',
'pipelet.pipeline'
,
'pipelet.tracker'
,
'pipelet.repository'
,
'pipelet.launchers'
,
'pipelet.task'
,
'pipelet.utils'
,
'pipelet.web'
],
package_data
=
{
'pipelet'
:
[
'static/*'
]},
scripts
=
[
'scripts/pipeweb'
,
'scripts/pipeutils'
]
scripts
=
[
'scripts/pipeweb'
,
'scripts/pipeutils'
,
'scripts/pipeletd'
]
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment