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

job-exec: implement ability to execute job shells #2198

Merged
merged 14 commits into from Jun 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/cmd/flux-jobspec.py
Expand Up @@ -3,6 +3,7 @@
from __future__ import print_function

import re
import os
import sys
import math
import logging
Expand Down Expand Up @@ -70,7 +71,7 @@ def create_slurm_style_jobspec(
"attributes": {},
}
],
"attributes": {"system": {}},
"attributes": {"system": {"cwd": os.getcwd()}},
}
if walltime:
jobspec["attributes"]["system"]["duration"] = walltime
Expand Down
28 changes: 27 additions & 1 deletion src/modules/job-exec/Makefile.am
Expand Up @@ -14,10 +14,23 @@ AM_CPPFLAGS = \
fluxmod_LTLIBRARIES = \
job-exec.la

noinst_LTLIBRARIES = \
libbulk-exec.la

noinst_PROGRAMS = \
bulk-exec

libbulk_exec_la_SOURCES = \
bulk-exec.h \
bulk-exec.c

job_exec_la_SOURCES = \
job-exec.h \
job-exec.c \
rset.c \
rset.h
rset.h \
testexec.c \
exec.c

job_exec_la_LDFLAGS = \
$(fluxmod_ldflags) \
Expand All @@ -27,6 +40,19 @@ job_exec_la_LIBADD = \
$(fluxmod_ldadd) \
$(top_builddir)/src/common/libflux-internal.la \
$(top_builddir)/src/common/libflux-core.la \
libbulk-exec.la \
$(ZMQ_LIBS)

bulk_exec_SOURCES = \
test/bulk-exec.c

bulk_exec_LDADD = \
$(fluxmod_ldadd) \
$(top_builddir)/src/common/libflux-internal.la \
$(top_builddir)/src/common/libflux-core.la \
$(top_builddir)/src/common/libflux-idset.la \
$(top_builddir)/src/common/libflux-optparse.la \
libbulk-exec.la \
$(ZMQ_LIBS)

test_ldadd = \
Expand Down