From 3ce781ec1b0b343ce35784bfea958b657b148b89 Mon Sep 17 00:00:00 2001 From: cherif Date: Sun, 12 May 2024 21:17:30 +0200 Subject: [PATCH] 12/05/2024 - 21h30 --- .idea/workspace.xml | 25 +- Job_Cron.py | 14 +- Log/log_file.log | 3484 +++++++++++++++++++++++++++++++++++++++++++ main.py | 3 +- partner_order.py | 258 ++-- prj_common.py | 2 +- 6 files changed, 3663 insertions(+), 123 deletions(-) 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 @@ - + - + + @@ -461,7 +462,6 @@ - @@ -486,6 +486,7 @@ - \ No newline at end of file diff --git a/Job_Cron.py b/Job_Cron.py index 28c2c96..6a40964 100644 --- a/Job_Cron.py +++ b/Job_Cron.py @@ -280,7 +280,7 @@ def Cron_Quotation_Relance(): {'$match': devis_qery_match}, ]) - print(" ## pipe_qry Cron_Quotation_Relance = ", pipe_qry) + #print(" ## pipe_qry Cron_Quotation_Relance = ", pipe_qry) for local_devis in MYSY_GV.dbname['partner_order_header'].aggregate(pipe_qry): is_quotation_validated = 0 @@ -315,25 +315,23 @@ def Cron_Quotation_Relance(): new_relance_date_ISODATE = date_derniere_relance_auto_ISODATE + timedelta(days=frequence_relance_auto) + """ print(" ### LA frequence_relance_auto ", frequence_relance_auto) print(" ### LA dernière relance date de ", date_derniere_relance_auto) print(" ### LA PROCHAINE RELANCE EST ", new_relance_date_ISODATE) + """ new_relance_date_no_ISODATE = str(new_relance_date_ISODATE.strftime("%d/%m/%Y")) - print(" ### LA PROCHAINE RELANCE EST (new_relance_date_no_ISODATE) ", new_relance_date_no_ISODATE) + #print(" ### LA PROCHAINE RELANCE EST (new_relance_date_no_ISODATE) ", new_relance_date_no_ISODATE) datetime.strptime(str(todays_date), '%d/%m/%Y') - if( datetime.strptime(str(todays_date), '%d/%m/%Y') >= datetime.strptime( str(new_relance_date_no_ISODATE).strip(), '%d/%m/%Y') ): - print(" ### todays_date est SUPERIEUR = new_relance_date_ISODATE") - else: - print(" ### todays_date est INFERIEUR new_relance_date_ISODATE") if( is_quotation_validated == 0 and relance_done <= nb_limite_relance and datetime.strptime(str(todays_date), '%d/%m/%Y') >= datetime.strptime( str(new_relance_date_no_ISODATE).strip(), '%d/%m/%Y') ): - print(" ### OUIIII on fait la relanceeeeeeeeeeeee") + """ On fait le traitement, on envoie le mail 1 - recuperation des data @@ -400,11 +398,13 @@ def Cron_Quotation_Relance(): return_document=ReturnDocument.AFTER ) + """ else: print(" ### NoNNNNNNNNNN on NEEEE fait la relanceeeeeeeeeeeee") print(" limite relance atteint : ") print(" limite relance_done : ", relance_done) print(" limite nb_limite_relance : ", nb_limite_relance) + """ return True, "" diff --git a/Log/log_file.log b/Log/log_file.log index 3c163b7..831efb2 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -2357322,3 +2357322,3487 @@ INFO:root:2024-05-12 17:34:28.744258 : Security check : IP adresse '127.0.0.1' INFO:root:2024-05-12 17:34:28.747427 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [12/May/2024 17:34:28] "POST /myclass/api/Get_Given_Partner_Order/ HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [12/May/2024 17:34: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 17:37:48.086121+02:00 (in 119.997106 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:37:48 CEST)" (scheduled at 2024-05-12 17:35:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:37:48 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 17:38:48 CEST)" (scheduled at 2024-05-12 17:35:48.086121+02:00) +INFO:root:2024-05-12 17:35:48.099132 : dimanche, 12. mai 2024 05:35:48 : 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 17:38:48 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 17:37:24.569752+02:00 (in 59.988340 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:38:24 CEST)" (scheduled at 2024-05-12 17:36:24.569752+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:38:24 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 17:38:24.569752+02:00 (in 59.986351 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 17:40:24 CEST)" (scheduled at 2024-05-12 17:37:24.569752+02:00) +INFO:root:2024-05-12 17:37:24.585384 : dimanche, 12. mai 2024 05:37:24 : 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 17:40:24 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 17:38:48.086121+02:00 (in 59.989139 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:39:48 CEST)" (scheduled at 2024-05-12 17:37:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:39:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 17:40:24.569752+02:00 (in 119.986895 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:40:24 CEST)" (scheduled at 2024-05-12 17:38:24.569752+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:40:24 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 17:39:48.086121+02:00 (in 59.992352 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 17:41:48 CEST)" (scheduled at 2024-05-12 17:38:48.086121+02:00) +INFO:root:2024-05-12 17:38:48.097772 : dimanche, 12. mai 2024 05:38:48 : 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 17:41:48 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 17:41:48.086121+02:00 (in 119.987926 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:41:48 CEST)" (scheduled at 2024-05-12 17:39:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:41:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 17:42:24.569752+02:00 (in 119.991111 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:42:24 CEST)" (scheduled at 2024-05-12 17:40:24.569752+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 17:43:24 CEST)" (scheduled at 2024-05-12 17:40:24.569752+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 17:42:24 CEST)" executed successfully +INFO:root:2024-05-12 17:40:24.580613 : dimanche, 12. mai 2024 05:40:24 : 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 17:43:24 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 18:37:48.086121+02:00 (in 95.858669 seconds) +WARNING:apscheduler.executors.default:Run time of job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:37:48 CEST)" was missed by 0:00:24.143336 +WARNING:apscheduler.executors.default:Run time of job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 18:38:48 CEST)" was missed by 0:00:24.143336 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:37:24.569752+02:00 (in 35.816020 seconds) +WARNING:apscheduler.executors.default:Run time of job "Flask_Cron_Strip_Get_Customer_Abonnement_Data (trigger: interval[0:03:00], next run at: 2024-05-12 18:37:24 CEST)" was missed by 0:02:24.240552 +WARNING:apscheduler.executors.default:Run time of job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:38:24 CEST)" was missed by 0:00:24.191981 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:38:24.569752+02:00 (in 59.994895 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 18:40:24 CEST)" (scheduled at 2024-05-12 18:37:24.569752+02:00) +INFO:root:2024-05-12 18:37:24.581869 : dimanche, 12. mai 2024 06:37:24 : 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 18:40:24 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 18:38:48.086121+02:00 (in 59.995166 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:39:48 CEST)" (scheduled at 2024-05-12 18:37:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:39:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:40:24.569752+02:00 (in 119.990479 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:40:24 CEST)" (scheduled at 2024-05-12 18:38:24.569752+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:40:24 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:39:48.086121+02:00 (in 59.993675 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 18:41:48 CEST)" (scheduled at 2024-05-12 18:38:48.086121+02:00) +INFO:root:2024-05-12 18:38:48.101569 : dimanche, 12. mai 2024 06:38:48 : 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 18:41:48 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 18:41:48.086121+02:00 (in 119.996259 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:41:48 CEST)" (scheduled at 2024-05-12 18:39:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:41:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:42:24.569752+02:00 (in 119.998081 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:42:24 CEST)" (scheduled at 2024-05-12 18:40:24.569752+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 18:43:24 CEST)" (scheduled at 2024-05-12 18:40:24.569752+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:42:24 CEST)" executed successfully +INFO:root:2024-05-12 18:40:24.579992 : dimanche, 12. mai 2024 06:40:24 : 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 18:43:24 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 18:43:48.086121+02:00 (in 119.978378 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:43:48 CEST)" (scheduled at 2024-05-12 18:41:48.086121+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 18:44:48 CEST)" (scheduled at 2024-05-12 18:41:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:43:48 CEST)" executed successfully +INFO:root:2024-05-12 18:41:48.116739 : dimanche, 12. mai 2024 06:41:48 : 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 18:44:48 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 18:43:24.569752+02:00 (in 59.985786 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:44:24 CEST)" (scheduled at 2024-05-12 18:42:24.569752+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:44:24 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:44:24.569752+02:00 (in 59.990081 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 18:46:24 CEST)" (scheduled at 2024-05-12 18:43:24.569752+02:00) +INFO:root:2024-05-12 18:43:24.589485 : dimanche, 12. mai 2024 06:43:24 : 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 18:46:24 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 18:44:48.086121+02:00 (in 59.991380 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:45:48 CEST)" (scheduled at 2024-05-12 18:43:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:45:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:46:24.569752+02:00 (in 119.985892 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:46:24 CEST)" (scheduled at 2024-05-12 18:44:24.569752+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:46:24 CEST)" executed successfully +INFO:root:2024-05-12 18:44:25.826766 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 18:44:25.835941 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:44:25] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:44:25.850745 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:44:25] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:44:25.857778 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:44:25] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:44:25] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:44:30.822371 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 18:44:30.829278 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:44:30] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:44:30] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:44:37.566599 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:44:37] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:44:37.571612 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:44:37] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:44:37.595220 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 18:44:37.598231 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:44:37] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:44:37] "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 18:45:48.086121+02:00 (in 59.990398 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 18:47:48 CEST)" (scheduled at 2024-05-12 18:44:48.086121+02:00) +INFO:root:2024-05-12 18:44:48.124167 : dimanche, 12. mai 2024 06:44:48 : 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 18:47:48 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 18:45:02.636048 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:45:02] "POST /myclass/api/Get_List_Partner_Document_with_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:45:15.298516 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:45:15] "POST /myclass/api/Get_List_Partner_Document_with_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:45:21.746473 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 18:45:21.752981 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:45:21] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:45:21] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:45:37.529218 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:45:37] "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 18:47:48.086121+02:00 (in 119.989157 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:47:48 CEST)" (scheduled at 2024-05-12 18:45:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:47:48 CEST)" executed successfully +INFO:root:2024-05-12 18:46:02.032705 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:46:02] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:46:23.424071 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:46:23] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:46:23.737692 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:46:23] "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 18:48:24.569752+02:00 (in 119.998737 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:48:24 CEST)" (scheduled at 2024-05-12 18:46:24.569752+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 18:49:24 CEST)" (scheduled at 2024-05-12 18:46:24.569752+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:48:24 CEST)" executed successfully +INFO:root:2024-05-12 18:46:24.578968 : dimanche, 12. mai 2024 06:46:24 : 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 18:49:24 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 18:46:41.122389 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:46:41] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:46:53.076812 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 18:46:53.080289 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:46:53] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:46:53] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:47:03.978578 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:47:04] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:47:22.142733 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:47:22] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:47:38.062413 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:47:38] "POST /myclass/api/Get_List_Partner_Document_with_filter/ HTTP/1.1" 200 - +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:49:48.086121+02:00 (in 119.986933 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:49:48 CEST)" (scheduled at 2024-05-12 18:47:48.086121+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 18:50:48 CEST)" (scheduled at 2024-05-12 18:47:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:49:48 CEST)" executed successfully +INFO:root:2024-05-12 18:47:48.108601 : dimanche, 12. mai 2024 06:47:48 : 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 18:50:48 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 18:47:53.630540 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:47:53] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:48:07.507196 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 18:48:07.510916 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:48:07] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:48:07] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:48:22.895165 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:48:22] "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 18:49:24.569752+02:00 (in 59.979356 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:50:24 CEST)" (scheduled at 2024-05-12 18:48:24.569752+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:50:24 CEST)" executed successfully +INFO:root:2024-05-12 18:48:37.804653 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:48:37] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:48:53.076928 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:48:53] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-05-12 18:48:53.358106 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [12/May/2024 18:48: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 18:50:24.569752+02:00 (in 59.992904 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 18:52:24 CEST)" (scheduled at 2024-05-12 18:49:24.569752+02:00) +INFO:root:2024-05-12 18:49:24.578098 : dimanche, 12. mai 2024 06:49:24 : 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 18:52:24 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 18:50:48.086121+02:00 (in 59.982906 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:51:48 CEST)" (scheduled at 2024-05-12 18:49:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:51:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:52:24.569752+02:00 (in 119.998776 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:52:24 CEST)" (scheduled at 2024-05-12 18:50:24.569752+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:52:24 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:51:48.086121+02:00 (in 59.996911 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 18:53:48 CEST)" (scheduled at 2024-05-12 18:50:48.086121+02:00) +INFO:root:2024-05-12 18:50:48.091212 : dimanche, 12. mai 2024 06:50:48 : 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 18:53:48 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 18:51:28.024015 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 18:51:28.024015 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 18:51:28.024015 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 18:51:28.024015 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 18:51:28.024015 : ++ 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 18:53:28.121760+02:00 (in 119.995010 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 18:53:48.086121+02:00 (in 119.997801 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:53:48 CEST)" (scheduled at 2024-05-12 18:51:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:53:48 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 18:53:28 CEST)" (scheduled at 2024-05-12 18:53:28.121760+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:54:28.120752+02:00 (in 59.986768 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:55:28 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:55:48.086121+02:00 (in 119.990772 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:55:48 CEST)" (scheduled at 2024-05-12 18:53:48.086121+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 18:56:48 CEST)" (scheduled at 2024-05-12 18:53:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:55:48 CEST)" executed successfully +INFO:root:2024-05-12 18:53:48.098664 : dimanche, 12. mai 2024 06:53:48 : 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 18:56:48 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 18:55:28.121760+02:00 (in 59.988400 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 18:57:28 CEST)" (scheduled at 2024-05-12 18:54:28.120752+02:00) +INFO:root:2024-05-12 18:54:28.136497 : dimanche, 12. mai 2024 06:54:28 : 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 18:57:28 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 18:55:26.234827 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 18:55:26.235824 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 18:55:26.235824 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 18:55:26.235824 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 18:55:26.235824 : ++ 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 18:57:26.308863+02:00 (in 119.997002 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 18:56:48.086121+02:00 (in 56.797853 seconds) +WARNING:apscheduler.executors.default:Run time of job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:57:48 CEST)" was missed by 0:00:03.202147 +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 18:57:48.086121+02:00 (in 59.988800 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 18:59:48 CEST)" (scheduled at 2024-05-12 18:56:48.086121+02:00) +INFO:root:2024-05-12 18:56:48.099325 : dimanche, 12. mai 2024 06:56:48 : 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 18:59:48 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 18:57:17.590754 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 18:57:17.590754 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 18:57:17.590754 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 18:57:17.590754 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 18:57:17.590754 : ++ 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 18:59:17.720026+02:00 (in 119.995464 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 18:59:48.086121+02:00 (in 119.959710 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:59:48 CEST)" (scheduled at 2024-05-12 18:57:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 18:59:48 CEST)" executed successfully +INFO:root:2024-05-12 18:58:02.574950 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 18:58:02.574950 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 18:58:02.575987 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 18:58:02.575987 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 18:58:02.575987 : ++ 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 19:00:02.643031+02:00 (in 119.996999 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 18:59:03.720664 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 18:59:03.721669 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 18:59:03.721669 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 18:59:03.721669 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 18:59:03.721669 : ++ 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 19:01:03.808222+02:00 (in 119.997001 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 19:01:48.086121+02:00 (in 119.944655 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:01:48 CEST)" (scheduled at 2024-05-12 18:59:48.086121+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 19:02:48 CEST)" (scheduled at 2024-05-12 18:59:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:01:48 CEST)" executed successfully +INFO:root:2024-05-12 18:59:48.150891 : dimanche, 12. mai 2024 06:59:48 : 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 19:02:48 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 19:00:23.023279 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 19:00:23.023279 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 19:00:23.023279 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 19:00:23.024281 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 19:00:23.024281 : ++ 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 19:02:23.086215+02:00 (in 119.998004 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 19:02:48.086121+02:00 (in 59.995118 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:03:48 CEST)" (scheduled at 2024-05-12 19:01:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:03:48 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 19:02:23 CEST)" (scheduled at 2024-05-12 19:02:23.086215+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:03:23.086215+02:00 (in 59.997883 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:04:23 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:03:48.086121+02:00 (in 59.998860 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 19:05:48 CEST)" (scheduled at 2024-05-12 19:02:48.086121+02:00) +INFO:root:2024-05-12 19:02:48.089261 : dimanche, 12. mai 2024 07:02:48 : 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 19:05:48 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 19:04:23.086215+02:00 (in 59.929738 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 19:06:23 CEST)" (scheduled at 2024-05-12 19:03:23.086215+02:00) +INFO:root:2024-05-12 19:03:23.165481 : dimanche, 12. mai 2024 07:03:23 : 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 19:06:23 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 19:05:48.086121+02:00 (in 119.989009 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:05:48 CEST)" (scheduled at 2024-05-12 19:03:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:05:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:06:23.086215+02:00 (in 119.994316 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:06:23 CEST)" (scheduled at 2024-05-12 19:04:23.086215+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:06:23 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:07:48.086121+02:00 (in 119.779576 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:07:48 CEST)" (scheduled at 2024-05-12 19:05:48.086121+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 19:08:48 CEST)" (scheduled at 2024-05-12 19:05:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:07:48 CEST)" executed successfully +INFO:root:2024-05-12 19:05:48.333558 : dimanche, 12. mai 2024 07:05:48 : 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 19:08:48 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 19:08:23 CEST)" (scheduled at 2024-05-12 19:06:23.086215+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 19:09:23 CEST)" (scheduled at 2024-05-12 19:06:23.086215+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:08:23.086215+02:00 (in 119.775939 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:08:23 CEST)" executed successfully +INFO:root:2024-05-12 19:06:23.313258 : dimanche, 12. mai 2024 07:06:23 : 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 19:09:23 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 19:07:11.619934 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 19:07:11.619934 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 19:07:11.620934 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 19:07:11.620934 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 19:07:11.620934 : ++ 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 19:09:11.689572+02:00 (in 119.998001 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 19:08:48.086121+02:00 (in 59.992475 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:09:48 CEST)" (scheduled at 2024-05-12 19:07:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:09:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:09:48.086121+02:00 (in 59.985547 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 19:11:48 CEST)" (scheduled at 2024-05-12 19:08:48.086121+02:00) +INFO:root:2024-05-12 19:08:48.102569 : dimanche, 12. mai 2024 07:08:48 : 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 19:11:48 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 19:09:11 CEST)" (scheduled at 2024-05-12 19:09:11.689572+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:10:11.688571+02:00 (in 59.987270 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:11:11 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:11:48.086121+02:00 (in 119.992722 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:11:48 CEST)" (scheduled at 2024-05-12 19:09:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:11:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:11:11.689572+02:00 (in 59.990751 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 19:13:11 CEST)" (scheduled at 2024-05-12 19:10:11.688571+02:00) +INFO:root:2024-05-12 19:10:11.704811 : dimanche, 12. mai 2024 07:10:11 : 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 19:13:11 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 19:13:11.688571+02:00 (in 119.988582 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:13:11 CEST)" (scheduled at 2024-05-12 19:11:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:13:11 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:13:48.086121+02:00 (in 119.986115 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:13:48 CEST)" (scheduled at 2024-05-12 19:11:48.086121+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 19:14:48 CEST)" (scheduled at 2024-05-12 19:11:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:13:48 CEST)" executed successfully +INFO:root:2024-05-12 19:11:48.109025 : dimanche, 12. mai 2024 07:11:48 : 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 19:14:48 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 19:16:11 CEST)" (scheduled at 2024-05-12 19:13:11.688571+02:00) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:13:11 CEST)" (scheduled at 2024-05-12 19:13:11.689572+02:00) +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:15:11.689572+02:00 (in 119.998135 seconds) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:15:11 CEST)" executed successfully +INFO:root:2024-05-12 19:13:11.694545 : dimanche, 12. mai 2024 07:13:11 : 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 19:16:11 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 19:14:48.086121+02:00 (in 59.986646 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:15:48 CEST)" (scheduled at 2024-05-12 19:13:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:15:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:15:48.086121+02:00 (in 59.995483 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 19:17:48 CEST)" (scheduled at 2024-05-12 19:14:48.086121+02:00) +INFO:root:2024-05-12 19:14:48.093703 : dimanche, 12. mai 2024 07:14:48 : 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 19:17:48 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 19:16:11.688571+02:00 (in 59.988168 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:17:11 CEST)" (scheduled at 2024-05-12 19:15:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:17:11 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:17:48.086121+02:00 (in 119.991834 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:17:48 CEST)" (scheduled at 2024-05-12 19:15:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:17:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:17:11.689572+02:00 (in 59.994608 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 19:19:11 CEST)" (scheduled at 2024-05-12 19:16:11.688571+02:00) +INFO:root:2024-05-12 19:16:11.696968 : dimanche, 12. mai 2024 07:16:11 : 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 19:19:11 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 19:19:11.688571+02:00 (in 119.936466 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:19:11 CEST)" (scheduled at 2024-05-12 19:17:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:19:11 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:19:48.086121+02:00 (in 119.995048 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:19:48 CEST)" (scheduled at 2024-05-12 19:17:48.086121+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 19:20:48 CEST)" (scheduled at 2024-05-12 19:17:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:19:48 CEST)" executed successfully +INFO:root:2024-05-12 19:17:48.093228 : dimanche, 12. mai 2024 07:17:48 : 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 19:20:48 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 19:21:11.689572+02:00 (in 119.970425 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 19:22:11 CEST)" (scheduled at 2024-05-12 19:19:11.688571+02:00) +INFO:root:2024-05-12 19:19:11.721144 : dimanche, 12. mai 2024 07:19:11 : 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 19:22:11 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 19:21:11 CEST)" (scheduled at 2024-05-12 19:19:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:21:11 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:20:48.086121+02:00 (in 59.996064 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:21:48 CEST)" (scheduled at 2024-05-12 19:19:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:21:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:21:48.086121+02:00 (in 59.994185 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 19:23:48 CEST)" (scheduled at 2024-05-12 19:20:48.086121+02:00) +INFO:root:2024-05-12 19:20:48.093425 : dimanche, 12. mai 2024 07:20:48 : 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 19:23:48 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 19:22:11.688571+02:00 (in 59.991968 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:23:11 CEST)" (scheduled at 2024-05-12 19:21:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:23:11 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:23:48.086121+02:00 (in 119.989784 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:23:48 CEST)" (scheduled at 2024-05-12 19:21:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:23:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:23:11.689572+02:00 (in 59.991518 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 19:25:11 CEST)" (scheduled at 2024-05-12 19:22:11.688571+02:00) +INFO:root:2024-05-12 19:22:11.700462 : dimanche, 12. mai 2024 07:22:11 : 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 19:25:11 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 19:25:11.688571+02:00 (in 119.954536 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:25:11 CEST)" (scheduled at 2024-05-12 19:23:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:25:11 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:25:48.086121+02:00 (in 119.995846 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:25:48 CEST)" (scheduled at 2024-05-12 19:23:48.086121+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 19:26:48 CEST)" (scheduled at 2024-05-12 19:23:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:25:48 CEST)" executed successfully +INFO:root:2024-05-12 19:23:48.092791 : dimanche, 12. mai 2024 07:23:48 : 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 19:26:48 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 19:27:11.689572+02:00 (in 119.994524 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 19:28:11 CEST)" (scheduled at 2024-05-12 19:25:11.688571+02:00) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:27:11 CEST)" (scheduled at 2024-05-12 19:25:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:27:11 CEST)" executed successfully +INFO:root:2024-05-12 19:25:11.697562 : dimanche, 12. mai 2024 07:25:11 : 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 19:28:11 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 19:26:48.086121+02:00 (in 59.998561 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:27:48 CEST)" (scheduled at 2024-05-12 19:25:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:27:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:27:48.086121+02:00 (in 59.990687 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 19:29:48 CEST)" (scheduled at 2024-05-12 19:26:48.086121+02:00) +INFO:root:2024-05-12 19:26:48.097283 : dimanche, 12. mai 2024 07:26:48 : 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 19:29:48 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 19:28:11.688571+02:00 (in 59.993637 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:29:11 CEST)" (scheduled at 2024-05-12 19:27:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:29:11 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:29:48.086121+02:00 (in 119.990447 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:29:48 CEST)" (scheduled at 2024-05-12 19:27:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:29:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:29:11.689572+02:00 (in 59.989437 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 19:31:11 CEST)" (scheduled at 2024-05-12 19:28:11.688571+02:00) +INFO:root:2024-05-12 19:28:11.702440 : dimanche, 12. mai 2024 07:28:11 : 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 19:31:11 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 19:31:11.688571+02:00 (in 119.983038 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:31:11 CEST)" (scheduled at 2024-05-12 19:29:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:31:11 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:31:48.086121+02:00 (in 119.986978 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:31:48 CEST)" (scheduled at 2024-05-12 19:29:48.086121+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 19:32:48 CEST)" (scheduled at 2024-05-12 19:29:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:31:48 CEST)" executed successfully +INFO:root:2024-05-12 19:29:48.108390 : dimanche, 12. mai 2024 07:29:48 : 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 19:32:48 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 19:33:11.689572+02:00 (in 119.996897 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 19:34:11 CEST)" (scheduled at 2024-05-12 19:31:11.688571+02:00) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:33:11 CEST)" (scheduled at 2024-05-12 19:31:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:33:11 CEST)" executed successfully +INFO:root:2024-05-12 19:31:11.696678 : dimanche, 12. mai 2024 07:31:11 : 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 19:34:11 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 19:32:48.086121+02:00 (in 59.997868 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:33:48 CEST)" (scheduled at 2024-05-12 19:31:48.086121+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:33:48 CEST)" executed successfully +DEBUG:apscheduler.scheduler:Looking for jobs to run +DEBUG:apscheduler.scheduler:Next wakeup is due at 2024-05-12 19:33:48.086121+02:00 (in 59.985736 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 19:35:48 CEST)" (scheduled at 2024-05-12 19:32:48.086121+02:00) +INFO:root:2024-05-12 19:32:48.114384 : dimanche, 12. mai 2024 07:32:48 : 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 19:35:48 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 19:34:11.688571+02:00 (in 59.994511 seconds) +INFO:apscheduler.executors.default:Running job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:35:11 CEST)" (scheduled at 2024-05-12 19:33:11.689572+02:00) +INFO:apscheduler.executors.default:Job "Internal_Global_MySy_Cron_Traitement (trigger: interval[0:02:00], next run at: 2024-05-12 19:35:11 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: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 19:58:00.269357 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 19:58:00.269357 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 19:58:00.269357 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 19:58:00.269357 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 19:58:00.269357 : ++ 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:00:00.353206+02:00 (in 119.997095 seconds) +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2024-05-12 19:58:11.779712 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-05-12 19:58:11.779712 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-05-12 19:58:11.780711 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-05-12 19:58:11.780711 : ++ FLASK PORT 5001 ++ +INFO:root:2024-05-12 19:58:11.780711 : ++ 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:00:11.853712+02:00 (in 119.997998 seconds) +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-05-12 19:58:31.057381 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-05-12 19:58:32.411312 : Get_Partner_Client_Communication_Contact - L'identifiant du client est invalide +DEBUG:xhtml2pdf:pisaDocument options: + src = '

 

\n\n\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 02/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +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:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +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\n\n\n\n\n\n\n
 
\n

Devis n° Devis_19

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_19
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
PREPARATEUR DE COMMANDE EN ENTREPRÔT216503300.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT3300.0 €
 TVATVA 20% €
 Total3960.0 €
\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\n\n\n\n\n\n\n
 
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 02/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n
 
\n

Devis n° Devis_19

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_19
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
PREPARATEUR DE COMMANDE EN ENTREPRÔT216503300.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT3300.0 €
 TVATVA 20% €
 Total3960.0 €
\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\n\n\n\n\n\n\n
 
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 02/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n
 
\n

Devis n° Devis_20

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_20
Date Devis : 02/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
ENGIN DE CHANTIER CACES R482110001000.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT1000.0 €
 TVATVA 20% €
 Total1200.0 €
\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\n\n\n\n\n\n\n
 
\n

Devis n° Devis_19

\n


adr_client2_fact
75001
paris

\n

 

\n

 

\n

Devis n° Devis_19
Date Devis : 12/05/2024
 

\n

 Expiration : 10/08/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
PREPARATEUR DE COMMANDE EN ENTREPRÔT216503300.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT3300.0 €
 TVATVA 20% €
 Total3960.0 €
\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
 


" \ - "

 

" + contenu_doc_Template = jinja2.Template(str(partner_document_QUOTATION_REMIND_data['contenu_doc'])) - todays_date = str(date.today().strftime("%d_%m_%Y")) - ts = datetime.now().timestamp() - ts = str(ts).replace(".", "").replace(",", "")[-2:] + #sourceHtml = contenu_doc_Template.render(params=body["params"]) - orig_file_name = "Devis_" + str(my_partner['recid'])[0:5] + "_" + str(todays_date) + "_" + str(ts) + ".pdf" - outputFilename = str(MYSY_GV.TEMPORARY_DIRECTORY) + "/" + str(orig_file_name) + ### + # 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) + + sujet_doc_Template = jinja2.Template(str(partner_document_QUOTATION_REMIND_data['sujet'])) + sujetHtml = sujet_doc_Template.render(params=Order_header_data) + + ### + + todays_date = str(date.today().strftime("%d/%m/%Y")) + ts = datetime.now().timestamp() + ts = str(ts).replace(".", "").replace(",", "")[-5:] + + orig_file_name = "Devis_" + str(my_partner['recid'])[0:5] + "_" + str(ts) + ".pdf" + outputFilename = str(MYSY_GV.TEMPORARY_DIRECTORY) + "/" + str(orig_file_name) + + # open output file for writing (truncated binary) + resultFile = open(outputFilename, "w+b") + + # convert HTML to PDF + pisaStatus = pisa.CreatePDF( + src=sourceHtml, # the HTML to convert + dest=resultFile) # file handle to receive result + + # close output file + resultFile.close() + + # Attachement du fichier joint + file_to_attache_to_mail = MIMEBase('application', "octet-stream") + file_to_attache_to_mail.set_payload(open(outputFilename, "rb").read()) + + encoders.encode_base64(file_to_attache_to_mail) + file_to_attache_to_mail.add_header('Content-Disposition', + 'attachment; filename="{0}"'.format( + os.path.basename(outputFilename))) + + new_node = {"attached_file": file_to_attache_to_mail} + tab_files_to_attache_to_mail.append(new_node) + + ## Creation du mail au format email + + corps_mail_Template = jinja2.Template(str(partner_document_QUOTATION_REMIND_data['corps_mail'])) + + sourceHtml = corps_mail_Template.render(params=body["params"]) + + html_mime = MIMEText(sourceHtml, 'html') + + # Creation de l'email à enoyer + msg = MIMEMultipart("alternative") - # open output file for writing (truncated binary) - resultFile = open(outputFilename, "w+b") - # convert HTML to PDF - pisaStatus = pisa.CreatePDF( - src=sourceHtml, # the HTML to convert - dest=resultFile) # file handle to receive result - # close output file - resultFile.close() """ Recuperation des parametre SMTP du partner si le client a decidé d'utiliser son propre smpt @@ -6706,8 +6802,9 @@ def Send_Quotation_Remind_Level1(diction): if (str(partner_own_smtp_value) == "1"): print("debut envoi mail de test ") - msg = EmailMessage() - msg.set_content(sourceHtml, subtype='html') + #msg = EmailMessage() + msg = MIMEMultipart("alternative") + smtpserver = smtplib.SMTP(partner_SMTP_COUNT_smtpsrv, partner_SMTP_COUNT_port) """ @@ -6715,28 +6812,18 @@ def Send_Quotation_Remind_Level1(diction): Si ce champ est vide alors on regarde si il y a un email sur la fiche client. """ - client_main_mail_tmp = "" - if ("order_header_email_client" in Order_header_data.keys() and Order_header_data[ - 'order_header_email_client']): - client_main_mail_tmp = str(Order_header_data['order_header_email_client']) - - if (mycommon.isEmailValide(client_main_mail_tmp) is True): - msg['To'] = client_main_mail_tmp - - else: - mycommon.myprint(str(inspect.stack()[0][ - 3]) + " - L'adresse email sur la commande n'est pas valide ") - return False, " L'adresse email sur la commande n'est pas valide " - - else: - mycommon.myprint(str(inspect.stack()[0][ - 3]) + " - Aucune adresse email sur la commande ") - return False, " Aucune adresse email sur la commande " + msg.attach(html_mime) msg['From'] = partner_SMTP_COUNT_From_User msg['Bcc'] = 'contact@mysy-training.com' msg['Subject'] = sujetHtml + toaddrs = ", ".join(tab_emails_destinataire) + msg['to'] = str(toaddrs) + + # Attacher l'eventuelle pièces jointes + for myfile in tab_files_to_attache_to_mail: + msg.attach(myfile['attached_file']) smtpserver.ehlo() smtpserver.starttls() @@ -6750,37 +6837,22 @@ def Send_Quotation_Remind_Level1(diction): else: print("debut envoi mail de test ") - msg = EmailMessage() - msg.set_content(sourceHtml, subtype='html') + #msg = EmailMessage() + msg = MIMEMultipart("alternative") + + + msg.attach(html_mime) smtpserver = smtplib.SMTP(MYSY_GV.O365_SMTP_COUNT_smtpsrv, MYSY_GV.O365_SMTP_COUNT_port) - """ - La commande est envoyée à l'adresse email qui se trouve sur la commande, le champ : 'order_header_email_client'. - - Si ce champ est vide alors on regarde si il y a un email sur la fiche client. - """ - client_main_mail_tmp = "" - - if ("order_header_email_client" in Order_header_data.keys() and Order_header_data[ - 'order_header_email_client']): - client_main_mail_tmp = str(Order_header_data['order_header_email_client']) - - if (mycommon.isEmailValide(client_main_mail_tmp) is True): - msg['To'] = client_main_mail_tmp - - else: - mycommon.myprint(str(inspect.stack()[0][ - 3]) + " - L'adresse email sur la commande n'est pas valide ") - return False, " L'adresse email sur la commande n'est pas valide " - - else: - mycommon.myprint(str(inspect.stack()[0][ - 3]) + " - Aucune adresse email sur la commande ") - return False, " Aucune adresse email sur la commande " - msg['From'] = MYSY_GV.O365_SMTP_COUNT_From_User msg['Bcc'] = 'contact@mysy-training.com' msg['Subject'] = sujetHtml + toaddrs = ", ".join(tab_emails_destinataire) + msg['to'] = str(toaddrs) + + # Attacher l'eventuelle pièces jointes + for myfile in tab_files_to_attache_to_mail: + msg.attach(myfile['attached_file']) smtpserver.ehlo() smtpserver.starttls() @@ -6790,25 +6862,7 @@ def Send_Quotation_Remind_Level1(diction): print(" Email envoyé " + str(val)) - - """ - Mettre à jour la commande /devis pour dire que quand le document a été envoyé - """ - updata_data = {} - updata_data['date_update'] = str(datetime.now()) - updata_data['update_by'] = str(my_partner['recid']) - updata_data['date_envoi_quotation'] = str(datetime.now()) - - todays_date = str(date.today().strftime("%d/%m/%Y")) - - updata_data['date_dernier_relance_auto'] = str(todays_date) - - MYSY_GV.dbname['partner_order_header'].find_one_and_update( - {'_id': ObjectId(str(Order_header_data['_id'])), - 'partner_owner_recid': str(Order_header_data['partner_owner_recid'])}, - {'$set': updata_data}) - - return True, " Relance envoyé à : '" + str(client_main_mail_tmp) + "' " + return True, " Relance envoyé à : '" + str(toaddrs) + "' " except Exception as e: exc_type, exc_obj, exc_tb = sys.exc_info() diff --git a/prj_common.py b/prj_common.py index c90ed38..c6d4e5a 100644 --- a/prj_common.py +++ b/prj_common.py @@ -4780,7 +4780,7 @@ def Get_Dictionnary_data_For_Template(diction): list_apprenant_data.append(new_apprenant_data) - print(" ### APPEND new_apprenant_data = ", new_apprenant_data) + #print(" ### APPEND new_apprenant_data = ", new_apprenant_data) dictionnary_data['list_apprenant_data'] = list_apprenant_data