Skip to content

Commit

Permalink
Run in worker environment if no job dependencies. Closes #1585 (#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
umesh-timalsina authored Apr 3, 2020
1 parent 13397a6 commit f3d9577
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/GenerateJob/templates/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ logger.fork = () => logger;

let remainingImageCount = 0;
let exitCode;
const DEEPFORGE_WORKER_ENV = 'deepforge';

const requirejs = require('requirejs');
requirejs([
Expand Down Expand Up @@ -140,8 +141,8 @@ requirejs([
];
}
return [
'python',
['main.py']
'conda',
['run', '-n', DEEPFORGE_WORKER_ENV, 'python', 'main.py']
];
}

Expand Down

0 comments on commit f3d9577

Please sign in to comment.