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

Add TASK_ID environment variable with the singularity task_id #1170

Merged
merged 1 commit into from Aug 5, 2016
Jump to file or symbol
Failed to load files and symbols.
+1 −0
Diff settings

Always

Just for now

@@ -166,6 +166,7 @@ private void prepareEnvironment(final SingularityTaskRequest task, SingularityTa
setEnv(envBldr, "TASK_REQUEST_ID", task.getPendingTask().getPendingTaskId().getRequestId());
setEnv(envBldr, "TASK_DEPLOY_ID", taskId.getDeployId());
setEnv(envBldr, "TASK_ID", taskId.getId());
setEnv(envBldr, "ESTIMATED_INSTANCE_COUNT", task.getRequest().getInstancesSafe());
for (Entry<String, String> envEntry : task.getDeploy().getEnv().or(Collections.<String, String>emptyMap()).entrySet()) {
ProTip! Use n and p to navigate between commits in a pull request.