From 1457d484bbfc975cb6f06ea2468bd05fc3ce25b1 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sun, 6 Dec 2020 23:43:53 +0530 Subject: [PATCH 1/2] chore: append .appwrite to python enviroment --- app/workers/functions.php | 2 -- debug/nginx-stdout---supervisor-DAF7HT.log | 0 debug/php7-fpm-stdout---supervisor-TGTF4g.log | 0 debug/supervisord.pid | 1 + debug/v1-schedule-stdout---supervisor-cNs2Cv.log | 1 + docker/environments/python-3.8/Dockerfile | 2 +- 6 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 debug/nginx-stdout---supervisor-DAF7HT.log create mode 100644 debug/php7-fpm-stdout---supervisor-TGTF4g.log create mode 100644 debug/supervisord.pid create mode 100644 debug/v1-schedule-stdout---supervisor-cNs2Cv.log diff --git a/app/workers/functions.php b/app/workers/functions.php index 4ce3fb32ac..22bc197778 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -374,8 +374,6 @@ class FunctionsV1 $executionStart = \microtime(true); $executionTime = \time(); - - $environment['image'] = 'appwrite/env-php-7-4:1.0'; $exitCode = Console::execute("docker run \ -d \ diff --git a/debug/nginx-stdout---supervisor-DAF7HT.log b/debug/nginx-stdout---supervisor-DAF7HT.log new file mode 100644 index 0000000000..e69de29bb2 diff --git a/debug/php7-fpm-stdout---supervisor-TGTF4g.log b/debug/php7-fpm-stdout---supervisor-TGTF4g.log new file mode 100644 index 0000000000..e69de29bb2 diff --git a/debug/supervisord.pid b/debug/supervisord.pid new file mode 100644 index 0000000000..920a139664 --- /dev/null +++ b/debug/supervisord.pid @@ -0,0 +1 @@ +43 diff --git a/debug/v1-schedule-stdout---supervisor-cNs2Cv.log b/debug/v1-schedule-stdout---supervisor-cNs2Cv.log new file mode 100644 index 0000000000..7570e1d217 --- /dev/null +++ b/debug/v1-schedule-stdout---supervisor-cNs2Cv.log @@ -0,0 +1 @@ +*** Starting scheduler worker diff --git a/docker/environments/python-3.8/Dockerfile b/docker/environments/python-3.8/Dockerfile index 91e2fbc27f..659644bd24 100644 --- a/docker/environments/python-3.8/Dockerfile +++ b/docker/environments/python-3.8/Dockerfile @@ -8,4 +8,4 @@ RUN mkdir /usr/local/src WORKDIR /usr/local/src/ -ENV PIP_TARGET=/usr/local/src/.appwrite \ No newline at end of file +ENV PYTHONPATH "${PYTHONPATH}:/usr/local/src/.appwrite" \ No newline at end of file From 3ebce067d0fc378bbd3889a1e39633293ffbc14b Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sun, 6 Dec 2020 23:45:46 +0530 Subject: [PATCH 2/2] chore: added debug to gitignore --- .gitignore | 3 ++- debug/nginx-stdout---supervisor-DAF7HT.log | 0 debug/php7-fpm-stdout---supervisor-TGTF4g.log | 0 debug/supervisord.pid | 1 - debug/v1-schedule-stdout---supervisor-cNs2Cv.log | 1 - 5 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 debug/nginx-stdout---supervisor-DAF7HT.log delete mode 100644 debug/php7-fpm-stdout---supervisor-TGTF4g.log delete mode 100644 debug/supervisord.pid delete mode 100644 debug/v1-schedule-stdout---supervisor-cNs2Cv.log diff --git a/.gitignore b/.gitignore index d0b2a74730..224a970df4 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ /tests/resources/storage/ /.idea/ .DS_Store -.php_cs.cache \ No newline at end of file +.php_cs.cache +debug/ \ No newline at end of file diff --git a/debug/nginx-stdout---supervisor-DAF7HT.log b/debug/nginx-stdout---supervisor-DAF7HT.log deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/debug/php7-fpm-stdout---supervisor-TGTF4g.log b/debug/php7-fpm-stdout---supervisor-TGTF4g.log deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/debug/supervisord.pid b/debug/supervisord.pid deleted file mode 100644 index 920a139664..0000000000 --- a/debug/supervisord.pid +++ /dev/null @@ -1 +0,0 @@ -43 diff --git a/debug/v1-schedule-stdout---supervisor-cNs2Cv.log b/debug/v1-schedule-stdout---supervisor-cNs2Cv.log deleted file mode 100644 index 7570e1d217..0000000000 --- a/debug/v1-schedule-stdout---supervisor-cNs2Cv.log +++ /dev/null @@ -1 +0,0 @@ -*** Starting scheduler worker