diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index cc0a3d7..f4b1c04 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,12 +1,13 @@
+
@@ -76,13 +77,6 @@
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_70112.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 19:58:32] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:00:00 CEST)" (scheduled at 2024-05-12 20:00:00.353206+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:01:00.353206+02:00 (in 59.996552 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:02:00 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:00:18.713905 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:00:18.713905 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:00:18.714907 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:00:18.714907 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:00:18.715903 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:02:18.937745+02:00 (in 119.997024 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:00:42.396405 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_17767.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:00:43] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:02:00.353206+02:00 (in 59.989064 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:04:00 CEST)" (scheduled at 2024-05-12 20:01:00.353206+02:00) +INFO:root:2024-05-12 20:01:00.377980 : dimanche, 12. mai 2024 08:01:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:04:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:01:59.464176 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:01:59.464176 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:01:59.464176 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:01:59.464176 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:01:59.464176 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:03:59.527358+02:00 (in 119.997957 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:04:00.353206+02:00 (in 119.997753 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:04:00 CEST)" (scheduled at 2024-05-12 20:02:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:04:00 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:03:14.157036 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:03:14.157036 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:03:14.157036 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:03:14.157036 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:03:14.157036 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:05:14.233960+02:00 (in 119.997249 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:03:38.298353 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_96366.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:03:39] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:06:00 CEST)" (scheduled at 2024-05-12 20:04:00.353206+02:00) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:07:00 CEST)" (scheduled at 2024-05-12 20:04:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:06:00 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:06:00.353206+02:00 (in 119.994842 seconds) +INFO:root:2024-05-12 20:04:00.361370 : dimanche, 12. mai 2024 08:04:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:07:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:05:14 CEST)" (scheduled at 2024-05-12 20:05:14.233960+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:06:14.233960+02:00 (in 59.998746 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:07:14 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:07:00.353206+02:00 (in 59.988699 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:08:00 CEST)" (scheduled at 2024-05-12 20:06:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:08:00 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:06:24.324384 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:06:24.324384 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:06:24.324384 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:06:24.324384 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:06:24.324384 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:08:24.429352+02:00 (in 119.996423 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:06:24.507996 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_55312.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:06:25] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:08:00.353206+02:00 (in 59.992750 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:10:00 CEST)" (scheduled at 2024-05-12 20:07:00.353206+02:00) +INFO:root:2024-05-12 20:07:00.362461 : dimanche, 12. mai 2024 08:07:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:10:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:10:00.353206+02:00 (in 119.984334 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:10:00 CEST)" (scheduled at 2024-05-12 20:08:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:10:00 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:08:24 CEST)" (scheduled at 2024-05-12 20:08:24.429352+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:09:24.427967+02:00 (in 59.900691 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:10:24 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:09:29.990907 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:09:29.991919 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:09:29.991919 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:09:29.991919 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:09:29.991919 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:11:30.180341+02:00 (in 119.996993 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:09:30.306577 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_61882.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:09:32] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:12:00.353206+02:00 (in 119.990928 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:12:00 CEST)" (scheduled at 2024-05-12 20:10:00.353206+02:00) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:13:00 CEST)" (scheduled at 2024-05-12 20:10:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:12:00 CEST)" executed successfully +INFO:root:2024-05-12 20:10:00.364276 : dimanche, 12. mai 2024 08:10:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:13:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:10:58.184895 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:10:58.184895 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:10:58.184895 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:10:58.184895 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:10:58.184895 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:12:58.262533+02:00 (in 119.997994 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:11:02.863679 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_79789.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:11:03] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:14:00 CEST)" (scheduled at 2024-05-12 20:12:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:14:00 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:13:00.353206+02:00 (in 59.973536 seconds) +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:12:58 CEST)" (scheduled at 2024-05-12 20:12:58.262533+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:13:58.262533+02:00 (in 59.987756 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:14:58 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:14:00.353206+02:00 (in 59.735021 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:16:00 CEST)" (scheduled at 2024-05-12 20:13:00.353206+02:00) +INFO:root:2024-05-12 20:13:00.647183 : dimanche, 12. mai 2024 08:13:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:16:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:13:49.687762 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:13:49.687762 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:13:49.687762 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:13:49.687762 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:13:49.687762 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:15:49.749285+02:00 (in 119.997999 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:16:00.353206+02:00 (in 119.990319 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:16:00 CEST)" (scheduled at 2024-05-12 20:14:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:16:00 CEST)" executed successfully +INFO:root:2024-05-12 20:14:06.666024 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_78949.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:14:12] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:15:10.291937 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:15:10.293404 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:15:10.293404 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:15:10.293404 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:15:10.293404 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:17:10.368974+02:00 (in 119.997512 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:15:45.061179 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:15:45] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:18:00.353206+02:00 (in 119.998031 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:18:00 CEST)" (scheduled at 2024-05-12 20:16:00.353206+02:00) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:19:00 CEST)" (scheduled at 2024-05-12 20:16:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:18:00 CEST)" executed successfully +INFO:root:2024-05-12 20:16:00.357329 : dimanche, 12. mai 2024 08:16:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:19:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2024-05-12 20:16:02.254483 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:16:02] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:17:28.753356 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:17:28.753356 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:17:28.754439 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:17:28.754439 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:17:28.754439 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:19:28.869186+02:00 (in 119.996791 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:19:00.353206+02:00 (in 59.983978 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:20:00 CEST)" (scheduled at 2024-05-12 20:18:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:20:00 CEST)" executed successfully +INFO:root:2024-05-12 20:18:12.296967 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:18:12.297971 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:18:12.297971 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:18:12.297971 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:18:12.297971 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:20:12.396984+02:00 (in 119.996539 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:18:12.518906 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:12] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:18:32.267916 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:32] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:18:32.517529 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:32] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:18:50.719505 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:18:50.724967 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:18:50.727979 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:18:50.732297 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:50] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:18:50.736310 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:18:50.741317 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:50] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:18:50.752518 : Connexion du partner recid = 43598820dd270936c3d2fd822717d0f18f194b1a1b894aaf89 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:18:50.759754 : Connexion du partner recid = 43598820dd270936c3d2fd822717d0f18f194b1a1b894aaf89 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:50] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:50] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:18:50.949447 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:50] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:18:50.952524 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:18:50.964333 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:50] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:18:50.968351 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:50] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:18:50] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:20:00.353206+02:00 (in 59.985946 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:22:00 CEST)" (scheduled at 2024-05-12 20:19:00.353206+02:00) +INFO:root:2024-05-12 20:19:00.368738 : dimanche, 12. mai 2024 08:19:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:22:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:22:00.353206+02:00 (in 119.993408 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:22:00 CEST)" (scheduled at 2024-05-12 20:20:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:22:00 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:20:12 CEST)" (scheduled at 2024-05-12 20:20:12.396984+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:21:12.395657+02:00 (in 59.996106 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:22:12 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:22:12.396984+02:00 (in 59.996991 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:24:12 CEST)" (scheduled at 2024-05-12 20:21:12.395657+02:00) +INFO:root:2024-05-12 20:21:12.402933 : dimanche, 12. mai 2024 08:21:12 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:24:12 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:24:00.353206+02:00 (in 119.986123 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:24:00 CEST)" (scheduled at 2024-05-12 20:22:00.353206+02:00) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:25:00 CEST)" (scheduled at 2024-05-12 20:22:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:24:00 CEST)" executed successfully +INFO:root:2024-05-12 20:22:00.369083 : dimanche, 12. mai 2024 08:22:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:25:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:24:12.395657+02:00 (in 119.912499 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:24:12 CEST)" (scheduled at 2024-05-12 20:22:12.396984+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:24:12 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:22:54.757863 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:22:54.758862 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:22:54.758862 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:22:54.758862 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:22:54.758862 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:24:54.838805+02:00 (in 119.996990 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:25:00.353206+02:00 (in 59.986191 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:26:00 CEST)" (scheduled at 2024-05-12 20:24:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:26:00 CEST)" executed successfully +INFO:root:2024-05-12 20:24:04.464424 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:24:04.464424 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:24:04.464424 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:24:04.464424 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:24:04.464424 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:26:04.549611+02:00 (in 119.997533 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:24:23.951599 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_78662.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:24:24] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:26:00.353206+02:00 (in 59.995010 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:28:00 CEST)" (scheduled at 2024-05-12 20:25:00.353206+02:00) +INFO:root:2024-05-12 20:25:00.359204 : dimanche, 12. mai 2024 08:25:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:28:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:26:00.301344 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:26:00.302344 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:26:00.302344 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:26:00.302344 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:26:00.302344 : ++ LMS_BAS_URL mysy-training.com/ ++ +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:28:00.353206+02:00 (in 119.997225 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:28:00 CEST)" (scheduled at 2024-05-12 20:26:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:28:00 CEST)" executed successfully +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:28:00.375982+02:00 (in 119.998000 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:26:17.008283 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_10096.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:26:17] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:26:59.346195 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:26:59.349533 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:26:59] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:26:59] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:27:08.125138 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:27:08] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:27:28.421301 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:27:28] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:27:28.657513 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:27:28] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:30:00.353206+02:00 (in 119.984206 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:30:00 CEST)" (scheduled at 2024-05-12 20:28:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:30:00 CEST)" executed successfully +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:31:00 CEST)" (scheduled at 2024-05-12 20:28:00.353206+02:00) +INFO:root:2024-05-12 20:28:00.380002 : dimanche, 12. mai 2024 08:28:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:31:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:28:00 CEST)" (scheduled at 2024-05-12 20:28:00.375982+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:28:00 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:29:00.374982+02:00 (in 59.986980 seconds) +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:28:22.237254 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:28:22.237254 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:28:22.237254 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:28:22.237254 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:28:22.237254 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:30:22.311811+02:00 (in 119.997995 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:29:13.465703 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:29:13.465703 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:29:13.465703 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:29:13.465703 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:29:13.465703 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:31:13.542865+02:00 (in 119.997521 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:29:45.388155 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_15163.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:29:47] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:31:00.353206+02:00 (in 59.992198 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:32:00 CEST)" (scheduled at 2024-05-12 20:30:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:32:00 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:32:00.353206+02:00 (in 59.990197 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:34:00 CEST)" (scheduled at 2024-05-12 20:31:00.353206+02:00) +INFO:root:2024-05-12 20:31:00.365329 : dimanche, 12. mai 2024 08:31:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:34:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:31:13 CEST)" (scheduled at 2024-05-12 20:31:13.542865+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:31:13 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:32:13.542865+02:00 (in 59.985706 seconds) +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:31:31.951499 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:31:31.951499 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:31:31.951499 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:31:31.951499 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:31:31.951499 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:33:32.193770+02:00 (in 119.997000 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:31:48.055131 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_40903.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:31:48] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:34:00.353206+02:00 (in 119.984256 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:34:00 CEST)" (scheduled at 2024-05-12 20:32:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:34:00 CEST)" executed successfully +INFO:root:2024-05-12 20:32:18.204575 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:32:18] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:32:40.724752 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:32:40] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:32:40.997188 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:32:41] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:33:32 CEST)" (scheduled at 2024-05-12 20:33:32.193770+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:34:32.192770+02:00 (in 59.991025 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:35:32 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:36:00.353206+02:00 (in 119.993562 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:36:00 CEST)" (scheduled at 2024-05-12 20:34:00.353206+02:00) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:37:00 CEST)" (scheduled at 2024-05-12 20:34:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:36:00 CEST)" executed successfully +INFO:root:2024-05-12 20:34:00.362948 : dimanche, 12. mai 2024 08:34:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:37:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:35:32.193770+02:00 (in 59.983951 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:37:32 CEST)" (scheduled at 2024-05-12 20:34:32.192770+02:00) +INFO:root:2024-05-12 20:34:32.211820 : dimanche, 12. mai 2024 08:34:32 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:37:32 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2024-05-12 20:34:44.988985 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:34:45] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:37:32.192770+02:00 (in 119.988296 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:37:32 CEST)" (scheduled at 2024-05-12 20:35:32.193770+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:37:32 CEST)" executed successfully +INFO:root:2024-05-12 20:35:38.456057 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:35:38] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:37:00.353206+02:00 (in 59.989947 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:38:00 CEST)" (scheduled at 2024-05-12 20:36:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:38:00 CEST)" executed successfully +INFO:root:2024-05-12 20:36:20.960637 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n --- LOGO --- \n | \n||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_85712.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:36:21] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:38:00.353206+02:00 (in 59.994551 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:40:00 CEST)" (scheduled at 2024-05-12 20:37:00.353206+02:00) +INFO:root:2024-05-12 20:37:00.362634 : dimanche, 12. mai 2024 08:37:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:40:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:40:32 CEST)" (scheduled at 2024-05-12 20:37:32.192770+02:00) +INFO:root:2024-05-12 20:37:32.198935 : dimanche, 12. mai 2024 08:37:32 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:40:32 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:37:32 CEST)" (scheduled at 2024-05-12 20:37:32.193770+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:39:32.193770+02:00 (in 119.997830 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:39:32 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:40:00.353206+02:00 (in 119.987838 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:40:00 CEST)" (scheduled at 2024-05-12 20:38:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:40:00 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:38:31.929147 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:38:31.929147 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:38:31.929147 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:38:31.929147 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:38:31.929147 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:40:32.006016+02:00 (in 119.997651 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:38:32.056169 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:38:32.060170 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:32] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:32] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:38:38.457754 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:38:38.460752 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:38] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:38] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:38:45.910419 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:45] "POST /myclass/api/Get_Default_Partner_Document_By_Internal_Ref/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:38:49.459326 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:49] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:38:52.040321 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:38:52.043482 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:52] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:52] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:38:58.511845 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:38:58.516685 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:38:58.520033 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:58] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:38:58.524510 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:38:58.531022 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:38:58.536378 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:38:58.542193 : Connexion du partner recid = 43598820dd270936c3d2fd822717d0f18f194b1a1b894aaf89 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:58] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:58] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:58] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:38:58.556775 : Connexion du partner recid = 43598820dd270936c3d2fd822717d0f18f194b1a1b894aaf89 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:58] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:58] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:38:58.732459 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:58] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:38:58.736591 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:38:58.742606 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:58] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:38:58.746608 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:58] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:38:58] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:39:05.144370 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:39:05.147358 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:39:05] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:39:05] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:39:11.626156 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:39:11.629774 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:39:11] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:39:11] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:39:21.811792 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:39:21] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:42:00.353206+02:00 (in 119.990700 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:42:00 CEST)" (scheduled at 2024-05-12 20:40:00.353206+02:00) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:43:00 CEST)" (scheduled at 2024-05-12 20:40:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:42:00 CEST)" executed successfully +INFO:root:2024-05-12 20:40:00.364949 : dimanche, 12. mai 2024 08:40:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:43:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:40:32 CEST)" (scheduled at 2024-05-12 20:40:32.006016+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:41:32.006016+02:00 (in 59.993268 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:42:32 CEST)" executed successfully +INFO:root:2024-05-12 20:40:33.125972 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:40:33] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:40:33.420859 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:40:33] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:40:52.917650 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:40:52.921655 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:40:52] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:40:52] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:41:01.020129 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:41:01] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:41:25.769539 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:41:25] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:42:32.006016+02:00 (in 59.990640 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:44:32 CEST)" (scheduled at 2024-05-12 20:41:32.006016+02:00) +INFO:root:2024-05-12 20:41:32.017389 : dimanche, 12. mai 2024 08:41:32 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:44:32 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2024-05-12 20:41:53.019944 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:41:53] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:41:53.213139 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:41:53] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:43:00.353206+02:00 (in 59.984742 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:44:00 CEST)" (scheduled at 2024-05-12 20:42:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:44:00 CEST)" executed successfully +INFO:root:2024-05-12 20:42:20.819664 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:20] "POST /myclass/api/Get_Partner_Group_Purchase_Price_List/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:42:20.837287 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:20] "POST /myclass/api/Get_Partner_Group_Purchase_Price_List/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:42:24.660415 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.663766 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.668139 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.671901 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:42:24.678520 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.683025 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.690893 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.700474 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.701472 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_Given_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:42:24.712943 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.727601 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.734618 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_List_Paiement_Condition/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_List_Partner_Order_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:42:24.753652 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.763729 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:24.771047 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:42:24.778675 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:42:24.789636 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_List_Partner_Order_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:42:24.801410 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_Given_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_List_Paiement_Condition/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Is_Partnair_Has_Digital_Signature/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:24] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:42:25.887378 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:25.891380 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:25] "POST /myclass/api/Get_Given_Partner_Order/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:25] "POST /myclass/api/Get_Given_Partner_Order_Lines/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:42:28.918340 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:42:28.922285 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:28] "POST /myclass/api/Get_Given_Partner_Order/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:42:28] "POST /myclass/api/Get_Given_Partner_Order_Lines/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:44:32.006016+02:00 (in 119.995047 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:44:32 CEST)" (scheduled at 2024-05-12 20:42:32.006016+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:44:32 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:44:00.353206+02:00 (in 59.987830 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:46:00 CEST)" (scheduled at 2024-05-12 20:43:00.353206+02:00) +INFO:root:2024-05-12 20:43:00.367655 : dimanche, 12. mai 2024 08:43:00 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:46:00 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Job_Cron.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:46:00.353206+02:00 (in 119.998243 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:46:00 CEST)" (scheduled at 2024-05-12 20:44:00.353206+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:46:00 CEST)" executed successfully +INFO:root:2024-05-12 20:44:03.938193 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:44:03.938193 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:44:03.939188 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:44:03.939188 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:44:03.939188 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:46:03.999060+02:00 (in 119.996843 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:root:2024-05-12 20:45:57.556475 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:45:57.556475 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:45:57.556475 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:45:57.556475 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:45:57.556475 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:47:57.622531+02:00 (in 119.996978 seconds) +INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m + * Running on http://localhost:5001 +INFO:werkzeug:[33mPress CTRL+C to quit[0m +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:46:07.380034 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:46:07.380034 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:46:07.380034 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:46:07.380034 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:46:07.380034 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:48:07.436050+02:00 (in 119.997013 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:47:57 CEST)" (scheduled at 2024-05-12 20:47:57.622531+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:48:57.622531+02:00 (in 59.992020 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:49:57 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:48:07 CEST)" (scheduled at 2024-05-12 20:48:07.436050+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:49:07.436050+02:00 (in 59.988376 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:50:07 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Job_Cron.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:48:19.228653 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:48:19.228653 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:48:19.228653 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:48:19.228653 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:48:19.228653 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:50:19.284254+02:00 (in 119.996010 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:49:57.622531+02:00 (in 59.997249 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:51:57 CEST)" (scheduled at 2024-05-12 20:48:57.622531+02:00) +INFO:root:2024-05-12 20:48:57.645679 : dimanche, 12. mai 2024 08:48:57 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:51:57 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:root:2024-05-12 20:49:03.363605 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:49:03.364602 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:49:03.364602 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:49:03.364602 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:49:03.364602 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:51:03.424775+02:00 (in 119.998002 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:51:57.622531+02:00 (in 119.988312 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:51:57 CEST)" (scheduled at 2024-05-12 20:49:57.622531+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:51:57 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:51:17.968275 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:51:17.969625 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:51:17.969625 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:51:17.969625 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:51:17.969625 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:53:18.052990+02:00 (in 119.997026 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:53:57 CEST)" (scheduled at 2024-05-12 20:51:57.622531+02:00) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:54:57 CEST)" (scheduled at 2024-05-12 20:51:57.622531+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:53:57.622531+02:00 (in 119.994008 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:53:57 CEST)" executed successfully +INFO:root:2024-05-12 20:51:57.630676 : dimanche, 12. mai 2024 08:51:57 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:54:57 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:53:18 CEST)" (scheduled at 2024-05-12 20:53:18.052990+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:54:18.052990+02:00 (in 59.989673 seconds) +INFO:root:2024-05-12 20:53:18.081145 : dimanche, 12. mai 2024 08:53:18 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:55:18 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:54:57.622531+02:00 (in 59.991942 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:55:57 CEST)" (scheduled at 2024-05-12 20:53:57.622531+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:55:57 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:55:18.052990+02:00 (in 59.994209 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:57:18 CEST)" (scheduled at 2024-05-12 20:54:18.052990+02:00) +INFO:root:2024-05-12 20:54:18.059853 : dimanche, 12. mai 2024 08:54:18 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:57:18 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:55:57.622531+02:00 (in 59.992563 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:57:57 CEST)" (scheduled at 2024-05-12 20:54:57.622531+02:00) +INFO:root:2024-05-12 20:54:57.631963 : dimanche, 12. mai 2024 08:54:57 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 20:57:57 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:57:18.052990+02:00 (in 119.993493 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:57:18 CEST)" (scheduled at 2024-05-12 20:55:18.052990+02:00) +INFO:root:2024-05-12 20:55:18.061506 : dimanche, 12. mai 2024 08:55:18 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:57:18 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:57:57.622531+02:00 (in 119.988979 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:57:57 CEST)" (scheduled at 2024-05-12 20:55:57.622531+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:57:57 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:56:54.475935 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:56:54.475935 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:56:54.475935 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:56:54.475935 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:56:54.475935 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:58:54.553222+02:00 (in 119.996908 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 20:57:07.133622 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 20:57:07.136790 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:57:07] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:57:07] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 20:57:10.075721 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 20:57:10] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:59:57.622531+02:00 (in 119.991863 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:59:57 CEST)" (scheduled at 2024-05-12 20:57:57.622531+02:00) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:00:57 CEST)" (scheduled at 2024-05-12 20:57:57.622531+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:59:57 CEST)" executed successfully +INFO:root:2024-05-12 20:57:57.633161 : dimanche, 12. mai 2024 08:57:57 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:00:57 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 20:58:54 CEST)" (scheduled at 2024-05-12 20:58:54.553222+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 20:59:54.553222+02:00 (in 59.987479 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:00:54 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\prj_common.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 20:59:30.126992 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 20:59:30.127990 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 20:59:30.127990 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 20:59:30.127990 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 20:59:30.127990 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:01:30.204403+02:00 (in 119.997000 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:00:57.622531+02:00 (in 59.994498 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:01:57 CEST)" (scheduled at 2024-05-12 20:59:57.622531+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:01:57 CEST)" executed successfully +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 21:00:33.621615 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 21:00:33.621615 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 21:00:33.621615 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 21:00:33.621615 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 21:00:33.621615 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:02:33.681064+02:00 (in 119.997450 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 21:00:56.214648 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:00:56] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:00:56.516891 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:00:56] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:01:57.622531+02:00 (in 59.994987 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:03:57 CEST)" (scheduled at 2024-05-12 21:00:57.622531+02:00) +INFO:root:2024-05-12 21:00:57.629739 : dimanche, 12. mai 2024 09:00:57 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:03:57 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:03:57.622531+02:00 (in 119.991037 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:03:57 CEST)" (scheduled at 2024-05-12 21:01:57.622531+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:03:57 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:02:33 CEST)" (scheduled at 2024-05-12 21:02:33.681064+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:03:33.679959+02:00 (in 59.985963 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:04:33 CEST)" executed successfully +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:root:2024-05-12 21:03:43.156398 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 21:03:43.156398 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 21:03:43.156398 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 21:03:43.157459 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 21:03:43.157459 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:05:43.218881+02:00 (in 119.997856 seconds) +INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m + * Running on http://localhost:5001 +INFO:werkzeug:[33mPress CTRL+C to quit[0m +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 21:03:52.150990 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 21:03:52.150990 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 21:03:52.150990 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 21:03:52.150990 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 21:03:52.150990 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:05:52.218730+02:00 (in 119.996998 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 21:04:21.498243 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:04:21.502103 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:04:21.506124 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:04:21.510685 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:21] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:04:21.515250 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:21] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:04:21.522871 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:04:21.530802 : Connexion du partner recid = 43598820dd270936c3d2fd822717d0f18f194b1a1b894aaf89 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:21] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:04:21.538248 : Connexion du partner recid = 43598820dd270936c3d2fd822717d0f18f194b1a1b894aaf89 OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:21] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:21] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:21] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:04:21.714593 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:21] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:04:21.719636 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:04:21.730870 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:04:21.736379 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:21] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:21] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:21] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:04:25.463146 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:04:25.467188 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:25] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:04:25] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:05:43 CEST)" (scheduled at 2024-05-12 21:05:43.218881+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:06:43.218881+02:00 (in 59.990880 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:07:43 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:05:52 CEST)" (scheduled at 2024-05-12 21:05:52.218730+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:06:52.218730+02:00 (in 59.992475 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:07:52 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:07:43.218881+02:00 (in 59.983164 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:09:43 CEST)" (scheduled at 2024-05-12 21:06:43.218881+02:00) +INFO:root:2024-05-12 21:06:43.237402 : dimanche, 12. mai 2024 09:06:43 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:09:43 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 21:07:09.853423 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 21:07:09.853423 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 21:07:09.853423 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 21:07:09.853423 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 21:07:09.853423 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:09:09.922968+02:00 (in 119.998114 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 21:07:09.963448 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:07:10] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:09:43.218881+02:00 (in 119.990325 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:09:43 CEST)" (scheduled at 2024-05-12 21:07:43.218881+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:09:43 CEST)" executed successfully +INFO:root:2024-05-12 21:08:21.536842 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:08:21] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:09:09 CEST)" (scheduled at 2024-05-12 21:09:09.922968+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:10:09.921496+02:00 (in 59.994869 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:11:09 CEST)" executed successfully +INFO:root:2024-05-12 21:09:23.369336 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:09:23] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:11:43 CEST)" (scheduled at 2024-05-12 21:09:43.218881+02:00) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:12:43 CEST)" (scheduled at 2024-05-12 21:09:43.218881+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:11:43.218881+02:00 (in 119.994110 seconds) +INFO:root:2024-05-12 21:09:43.231890 : dimanche, 12. mai 2024 09:09:43 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:12:43 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:11:43 CEST)" executed successfully +INFO:root:2024-05-12 21:09:46.771649 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:09:46] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:09:46.974735 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:09:46] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:09:51.440219 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n | ||||||||||||||||||||||||||||||
\n Devis n° Devis_19 \n
\n \n Devis n° Devis_19 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_30269.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n | ||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_34305.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:09:52] "GET /myclass/api/Global_MySy_Cron_Traitement/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:11:09.922968+02:00 (in 59.990066 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:13:09 CEST)" (scheduled at 2024-05-12 21:10:09.921496+02:00) +INFO:root:2024-05-12 21:10:09.934918 : dimanche, 12. mai 2024 09:10:09 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:13:09 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_order.py', reloading +INFO:apscheduler.scheduler:Scheduler has been shut down +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 21:10:38.463960 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 21:10:38.465352 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 21:10:38.465352 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 21:10:38.465352 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 21:10:38.466386 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts +INFO:apscheduler.scheduler:Added job "Flask_Cron_Strip_Get_Customer_Abonnement_Data" to job store "default" +INFO:apscheduler.scheduler:Added job "Internal_Global_MySy_Cron_Traitement" to job store "default" +INFO:apscheduler.scheduler:Scheduler started +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:12:38.558591+02:00 (in 119.996998 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:12:43.218881+02:00 (in 59.993994 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:13:43 CEST)" (scheduled at 2024-05-12 21:11:43.218881+02:00) +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n | ||||||||||||||||||||||||||||||
\n Devis n° Devis_19 \n
\n \n Devis n° Devis_19 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_21513.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n | ||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_34743.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:13:43 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:12:38 CEST)" (scheduled at 2024-05-12 21:12:38.558591+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:13:38.558591+02:00 (in 59.985780 seconds) +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n | ||||||||||||||||||||||||||||||
\n Devis n° Devis_20 \n
\n \n Devis n° Devis_20 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_57801.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:14:38 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:13:43.218881+02:00 (in 59.991445 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:15:43 CEST)" (scheduled at 2024-05-12 21:12:43.218881+02:00) +INFO:root:2024-05-12 21:12:43.229433 : dimanche, 12. mai 2024 09:12:43 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:15:43 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:14:38.558591+02:00 (in 59.987943 seconds) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:16:38 CEST)" (scheduled at 2024-05-12 21:13:38.558591+02:00) +INFO:root:2024-05-12 21:13:38.572649 : dimanche, 12. mai 2024 09:13:38 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:16:38 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:15:43.218881+02:00 (in 119.993834 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:15:43 CEST)" (scheduled at 2024-05-12 21:13:43.218881+02:00) +DEBUG:xhtml2pdf:pisaDocument options: + src = '
\n
\n | ||||||||||||||||||||||||||||||
\n Devis n° Devis_19 \n
\n \n Devis n° Devis_19 Expiration : 10/08/2024 \n \n
\n \n \n \n \n
\n | \n
\n
\n
\n
\n
\n
\n
' + dest = <_io.BufferedRandom name='./temp_direct/Devis_43598_07096.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:15:43 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:16:38.558591+02:00 (in 119.999544 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:16:38 CEST)" (scheduled at 2024-05-12 21:14:38.558591+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:16:38 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:17:43.218881+02:00 (in 119.994897 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:17:43 CEST)" (scheduled at 2024-05-12 21:15:43.218881+02:00) +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:18:43 CEST)" (scheduled at 2024-05-12 21:15:43.218881+02:00) +INFO:root:2024-05-12 21:15:43.225519 : dimanche, 12. mai 2024 09:15:43 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:18:43 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:17:43 CEST)" executed successfully +INFO:root:2024-05-12 21:16:27.312279 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:16:27.314195 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:16:27.318717 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:16:27.326102 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:16:27.329188 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:16:27.334537 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:16:27.340365 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:16:27.516079 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_List_Paiement_Condition/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_Client_Type_List/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:16:27.526851 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_CRM_List_Opportunite_Etape/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_Competence_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:16:27.543586 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_List_Site_Formation_with_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:16:27.551965 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:16:27.560806 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:16:27.578119 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_Client_Type_List/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:16:27.581164 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 21:16:27.585697 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:16:27.593114 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_List_Site_Formation_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_CRM_List_Opportunite_Etape/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_Competence_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:27] "POST /myclass/api/Get_List_Paiement_Condition/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:16:28.848362 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:28] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +INFO:apscheduler.executors.default:Running job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:19:38 CEST)" (scheduled at 2024-05-12 21:16:38.558591+02:00) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:16:38 CEST)" (scheduled at 2024-05-12 21:16:38.558591+02:00) +INFO:root:2024-05-12 21:16:38.577314 : dimanche, 12. mai 2024 09:16:38 : Envoie des données de prefacturation : - 0 clients ==> A traiter. - 0 clients==> traiter OKK. - 0 clients ==> traiter ERREUR. +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 21:18:38.558591+02:00 (in 119.984327 seconds) +ERROR:apscheduler.executors.default:Job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 21:19:38 CEST)" raised an exception +Traceback (most recent call last): + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\apscheduler\executors\base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "C:\Users\billa\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\main.py", line 3955, in Flask_Cron_Strip_Get_Customer_Abonnement_Data + return jsonify(status=localStatus, message=message) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\json\__init__.py", line 342, in jsonify + return current_app.json.response(*args, **kwargs) + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 316, in __get__ + obj = instance._get_current_object() + File "C:\Users\billa\AppData\Local\Programs\Python\Python310\lib\site-packages\werkzeug\local.py", line 513, in _get_current_object + raise RuntimeError(unbound_message) from None +RuntimeError: Working outside of application context. + +This typically means that you attempted to use functionality that needed +the current application. To solve this, set up an application context +with app.app_context(). See the documentation for more information. +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 21:18:38 CEST)" executed successfully +INFO:root:2024-05-12 21:16:42.559054 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:42] "POST /myclass/api/Add_Update_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:root:2024-05-12 21:16:42.653664 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 21:16:42] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - diff --git a/main.py b/main.py index 3ab3719..1de5943 100644 --- a/main.py +++ b/main.py @@ -9164,7 +9164,8 @@ def Global_MySy_Cron_Traitement(): def Internal_Global_MySy_Cron_Traitement(): print(" ### CRONNN Internal_Global_MySy_Cron_Traitement : payload = ") - #localStatus, message = Stripe.Cron_Strip_Get_Customer_Abonnement_Data() + status, retval = Job_Cron.Global_MySy_Cron_Traitement() + print(" FIN traitement Internal_Global_MySy_Cron_Traitement localStatus = ", status) return True diff --git a/partner_order.py b/partner_order.py index 218f74e..9e8d931 100644 --- a/partner_order.py +++ b/partner_order.py @@ -23,6 +23,7 @@ from datetime import datetime, date import E_Sign_Document import Inscription_mgt +import partner_client import prj_common as mycommon import secrets import inspect @@ -6467,32 +6468,68 @@ def Send_Quotation_Remind_Level1(diction): 'partner_owner_recid': str( my_partner['recid'])}) - partner_document_CONF_ORDER_data_qry = {'partner_owner_recid': str(my_partner['recid']), - 'valide': '1', 'locked': '0', 'ref_interne': 'PART_ORDER', - 'type_doc': 'email'} + # Creation du dictionnaire d'information à utiliser pour la creation du doc + + tab_client = [] + tab_client.append(ObjectId(str(Order_header_data['order_header_client_id']))) + + convention_dictionnary_data = {} + new_diction = {} + new_diction['token'] = diction['token'] + new_diction['list_stagiaire_id'] = [] + new_diction['list_session_id'] = [] + new_diction['list_class_id'] = [] + new_diction['list_client_id'] = tab_client + new_diction['list_apprenant_id'] = [] + + + local_status, local_retval = mycommon.Get_Dictionnary_data_For_Template(new_diction) + + if (local_status is False): + return local_status, local_retval + + convention_dictionnary_data = local_retval + + body = { + "params": convention_dictionnary_data, + } + + + """ + # Recuperer le modele de courrier pour la relance niveau 1 des devis : + ref_interne = 'QUOTATION_REMINDER_LEVEL_1' + """ # print(" ### partner_document_CONF_ORDER_data_qry = ", partner_document_CONF_ORDER_data_qry) - partner_document_CONF_ORDER_data = MYSY_GV.dbname['courrier_template'].find_one( + partner_document_QUOTATION_REMIND_data = MYSY_GV.dbname['courrier_template'].find_one( {'partner_owner_recid': str(my_partner['recid']), - 'valide': '1', 'locked': '0', 'ref_interne': 'PART_ORDER', 'type_doc': 'email'}) + 'valide': '1', 'locked': '0', 'ref_interne': 'QUOTATION_REMINDER_LEVEL_1', + 'type_doc': 'email'}) - if (partner_document_CONF_ORDER_data is None): + if (partner_document_QUOTATION_REMIND_data is None): # Il n'existe pas de personnalisation de la preinscription pour ce partenaire, on va aller récupérer la presinscription pa defaut - partner_document_CONF_ORDER_data = MYSY_GV.dbname['courrier_template'].find_one( + partner_document_QUOTATION_REMIND_data = MYSY_GV.dbname['courrier_template'].find_one( {'partner_owner_recid': 'default', - 'valide': '1', 'locked': '0', 'ref_interne': 'PART_ORDER', 'type_doc': 'email'}) + 'valide': '1', 'locked': '0', 'ref_interne': 'QUOTATION_REMINDER_LEVEL_1', + 'type_doc': 'email'}) - if (partner_document_CONF_ORDER_data is None): + if (partner_document_QUOTATION_REMIND_data is None): mycommon.myprint( str(inspect.stack()[0][ - 3]) + "Aucun document parametré ") - return False, "Aucun document parametré " + 3]) + " Aucun document de type 'partner_document_QUOTATION_REMIND_data' paramétrer ") + return False, " Aucun document de type 'partner_document_QUOTATION_REMIND_data' paramétrer " - if ("contenu_doc" not in partner_document_CONF_ORDER_data or len( - str(partner_document_CONF_ORDER_data['contenu_doc'])) <= 0): + if ("contenu_doc" not in partner_document_QUOTATION_REMIND_data or len( + str(partner_document_QUOTATION_REMIND_data['contenu_doc'])) <= 0): mycommon.myprint(str(inspect.stack()[0][ - 3]) + " - Le parametrage du document est invalide") - return False, " Le parametrage du document est invalide " + 3]) + " - Le paramétrage du document est invalide -contenu_doc- ") + return False, " Le paramétrage du document est invalide -contenu_doc- " + + if ("corps_mail" not in partner_document_QUOTATION_REMIND_data or len( + str(partner_document_QUOTATION_REMIND_data['corps_mail'])) <= 0): + mycommon.myprint(str(inspect.stack()[0][ + 3]) + " - Le paramétrage du document est invalide -corps_mail- ") + return False, " Le paramétrage du document est invalide -corps_mail- " # Recuperation des données du client if ("order_header_client_id" in Order_header_data.keys()): @@ -6505,6 +6542,25 @@ def Send_Quotation_Remind_Level1(diction): 3]) + " - Le client est invalide") return False, " Le client est invalide" + # Recuperation des contacts de communication du client + + tab_emails_destinataire = [] + + local_diction = {} + local_diction['token'] = diction['token'] + local_diction['_id'] = str(Order_header_data['order_header_client_id']) + + local_status, partner_client_contact_communication = partner_client.Get_Partner_Client_Communication_Contact( + local_diction) + + if (local_status is True): + # print(" partner_client_contact_communication = ", partner_client_contact_communication) + for contact_communication_str in partner_client_contact_communication: + contact_communication = ast.literal_eval(contact_communication_str) + if( "email" in contact_communication.keys() and contact_communication['email']): + tab_emails_destinataire.append(str(contact_communication['email'])) + + # Recuperation des details de lignes de : partner_order_line filt_class_partner_recid = {'partner_owner_recid': str(my_partner['recid'])} filt_order_header_order_id = {'order_header_id': str(diction['order_id'])} @@ -6628,37 +6684,77 @@ def Send_Quotation_Remind_Level1(diction): # print(" ### Order_header_lines_data = ", Order_header_lines_data) - contenu_doc_Template = jinja2.Template(str(partner_document_CONF_ORDER_data['contenu_doc'])) + # Traitement de l'eventuel fichier joint + tab_files_to_attache_to_mail = [] - contenu_doc_Template_subject = jinja2.Template(str(partner_document_CONF_ORDER_data['sujet'])) + ####### + # Verifier s'il s'agit d'un document à envoyer avec une version de pièce jointe. + if ("joint_pdf" in partner_document_QUOTATION_REMIND_data.keys() and str(partner_document_QUOTATION_REMIND_data['joint_pdf']) == "1"): + # Il s'agit bien d'un envoie avec 'contenu_doc' en pièce jointe PDF + """ + 1 - Creation du PDF + """ - # print(" #### Order_header_data = ", Order_header_data) - Order_header_data['order_header_type'] = str(Order_header_data['order_header_type']).capitalize() - sourceHtml = contenu_doc_Template.render(params=Order_header_data, param_order_lines=Order_header_lines_data) - sujetHtml = str(Order_header_data['order_header_type']) + " : " + str( - Order_header_data['order_header_ref_interne']) - new_model_courrier_with_code_tag = str( - sourceHtml) + "
Signature Client