Skip to content
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

196 scanning cannot be completed correctly #200

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion embark/uploader/boundedexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from django.dispatch import receiver
from django.utils import timezone
from django.conf import settings
from django.db import close_old_connections

from uploader import finish_execution
from uploader.archiver import Archiver
Expand All @@ -42,7 +43,7 @@
semaphore = BoundedSemaphore(MAX_QUEUE)

# emba directories
EMBA_SCRIPT_LOCATION = f"cd {settings.EMBA_ROOT} && sudo -E ./emba"
EMBA_SCRIPT_LOCATION = f"cd {settings.EMBA_ROOT} && sudo ./emba"


class BoundedException(Exception):
Expand Down Expand Up @@ -96,6 +97,7 @@ def run_emba_cmd(cls, cmd, analysis_id=None, active_analyzer_dir=None):
if return_code != 0:
raise BoundedException("EMBA has non zero exit-code")

close_old_connections()
# get csv log location
csv_log_location = f"{settings.EMBA_LOG_ROOT}/{analysis_id}/emba_logs/csv_logs/f50_base_aggregator.csv"

Expand Down
Loading