Skip to content

Commit 201ce4f

Browse files
authored
Merge pull request #6605 from BOINC/dpa_submit50
scheduler: if 'only run my jobs on my computers' set, run only your jobs
2 parents d28ff78 + 254fde6 commit 201ce4f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

html/user/submit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ function() use ($apps) {
396396
'Jobs you submit can run', 'only_own',
397397
[
398398
[0, 'on any computer'],
399-
[1, 'only on your computers']
399+
[1, 'only on your computers (and no other jobs will run there)']
400400
],
401401
$user->seti_id
402402
);

sched/sched_send.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,6 +1717,13 @@ void send_work() {
17171717
}
17181718
}
17191719

1720+
// if user is job submitter and has 'only run jobs on my computers' set,
1721+
// send them only their own jobs
1722+
//
1723+
if (g_reply->user.seti_id) {
1724+
goto done;
1725+
}
1726+
17201727
if (config.enable_assignment_multi) {
17211728
if (send_broadcast_jobs()) {
17221729
if (config.debug_assignment) {

0 commit comments

Comments
 (0)