Skip to content

Commit

Permalink
Add 50ms delay after creating script before executing it
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenttaglia committed Jan 18, 2024
1 parent 690f6c9 commit 87e804c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import base64
import logging
import secrets
import time

# Set up logging
logging.basicConfig(level=logging.DEBUG)
Expand Down Expand Up @@ -66,6 +67,8 @@ def execute():
for key, value in request_json.get("env", {}).items():
env[key] = value

time.sleep(0.05)

proc = subprocess.Popen(
[path] + shlex.split(request_json["calldata"]),
env=env,
Expand Down

0 comments on commit 87e804c

Please sign in to comment.