Skip to content

Commit

Permalink
🐛nuxmv limit is blocked by gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
soaibsafi committed Jan 9, 2024
1 parent 9991aa1 commit c1bfdcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

flask db upgrade

gunicorn --bind 0.0.0.0:8000 app:app
gunicorn --bind 0.0.0.0:8000 app:app --timeout 120 --workers 4 --threads 2 --worker-class gthread
2 changes: 1 addition & 1 deletion backend/utils/xmv.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def run_nuxmv(code: str) -> str:
return prettify_output(result.stdout), prettify_error(result.stderr)
except subprocess.TimeoutExpired:
os.remove(tmp_file.name)
return "Process timed out after {} seconds".format(5)
return f"Timeout: Process timed out after 60 seconds."


def prettify_output(stdout: str):
Expand Down

0 comments on commit c1bfdcf

Please sign in to comment.