Skip to content
Snippets Groups Projects
Commit acdb4443 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

back out almapipe changes

parent 7bf8c0ee
No related branches found
No related tags found
1 merge request!518back out almapipe changes
Pipeline #2957 passed
......@@ -31,6 +31,9 @@ class CapoInjector:
logger.info(f"current profile: {current}")
if RemoteProcessingSites.NAASC.value in self.request.argument:
# for local testing only
# if current == "docker":
# return "naasc-dev"
system = current.split("-")[1]
remote_profile = "naasc-" + system
logger.info(f"profile for request: {remote_profile}")
......
......@@ -485,20 +485,11 @@ class WorkflowService(WorkflowServiceIF):
sets gid and uid of subprocess to those of the submituser so that jobs can be
properly submitted
"""
if run_cv:
# run as almapipe
submituser_gid = 9233
submituser_uid = 9233
submituser_gid = 6000
submituser_uid = 6000
os.setgid(submituser_gid)
os.setuid(submituser_uid)
else:
# run as vlapipe
submituser_gid = 6000
submituser_uid = 6000
os.setgid(submituser_gid)
os.setuid(submituser_uid)
os.setgid(submituser_gid)
os.setuid(submituser_uid)
@staticmethod
def _get_job_logfile_name(jobfile_name: Path) -> Path:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment