path
This commit is contained in:
@@ -65,7 +65,7 @@ class Solution(models.Model):
|
||||
|
||||
@property
|
||||
def volume_directory(self):
|
||||
return "solution"
|
||||
return "/sprint-data/worker/" + str(self.id)
|
||||
|
||||
def exec_command(self, command, working_directory='app', timeout=None):
|
||||
return call(f'docker exec -i solution_{self.id} sh -c "cd {working_directory} && {command}"', shell=True, timeout=timeout)
|
||||
|
Reference in New Issue
Block a user