Skip to content

Commit 4c42b36

Browse files
committed
delegate: allow job delegation to a different flux instance
Problem: Delegating a submitted job to a different flux instance is currently not supported. This feature is useful for users that have jobs that need to be executed in a multi-cluster setup, or for workflows where a certain sub-job needs to be executed on a peer cluster. Allow delegation of jobs to a different, peer-level flux instance by utilizing the URI of the other instance. Currently, explicit checking for feasibility of the job on the delegated instance is not performed, and it is assumed that both the instances belong to the same user.
1 parent ea37596 commit 4c42b36

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/modules/job-manager/Makefile.am

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobtap_plugin_LTLIBRARIES = \
2020
plugins/submit-hold.la \
2121
plugins/alloc-bypass.la \
2222
plugins/alloc-check.la \
23-
plugins/perilog.la
23+
plugins/perilog.la \
24+
plugins/delegate.la
2425

2526
libjob_manager_la_SOURCES = \
2627
job-manager.c \
@@ -121,6 +122,14 @@ plugins_perilog_la_LDFLAGS = \
121122
$(fluxplugin_ldflags) \
122123
-module
123124

125+
plugins_delegate_la_SOURCES = \
126+
plugins/delegate.c
127+
plugins_delegate_la_LIBADD = \
128+
$(top_builddir)/src/common/libflux-core.la
129+
$(JANSSON_LIBS)
130+
plugins_delegate_la_LDFLAGS = \
131+
$(fluxplugin_ldflags) \
132+
-module
124133

125134
TESTS = \
126135
test_job.t \

0 commit comments

Comments
 (0)