4cc6a86e2986f91f6d93b2b5aea722/data/db/base/16384/3256">3256 a4345e5759 first commit лет назад: 4 3257 a4345e5759 first commit лет назад: 4 3258 a4345e5759 first commit лет назад: 4 3350 a4345e5759 first commit лет назад: 4 3351 a4345e5759 first commit лет назад: 4 3379 a4345e5759 first commit лет назад: 4 3380 a4345e5759 first commit лет назад: 4 3381 a4345e5759 first commit лет назад: 4 3394 a4345e5759 first commit лет назад: 4 3394_fsm a4345e5759 first commit лет назад: 4 3394_vm a4345e5759 first commit лет назад: 4 3395 a4345e5759 first commit лет назад: 4 3429 a4345e5759 first commit лет назад: 4 3430 a4345e5759 first commit лет назад: 4 3431 a4345e5759 first commit лет назад: 4 3433 a4345e5759 first commit лет назад: 4 3439 a4345e5759 first commit лет назад: 4 3440 a4345e5759 first commit лет назад: 4 3455 a4345e5759 first commit лет назад: 4 3456 a4345e5759 first commit лет назад: 4 3456_fsm a4345e5759 first commit лет назад: 4 3456_vm a4345e5759 first commit лет назад: 4 3466 a4345e5759 first commit лет назад: 4 3467 a4345e5759 first commit лет назад: 4 3468 a4345e5759 first commit лет назад: 4 3501 a4345e5759 first commit лет назад: 4 3502 a4345e5759 first commit лет назад: 4 3503 a4345e5759 first commit лет назад: 4 3534 a4345e5759 first commit лет назад: 4 3541 a4345e5759 first commit лет назад: 4 3541_fsm a4345e5759 first commit лет назад: 4 3541_vm a4345e5759 first commit лет назад: 4 3542 a4345e5759 first commit лет назад: 4 3574 a4345e5759 first commit лет назад: 4 3575 a4345e5759 first commit лет назад: 4 3576 a4345e5759 first commit лет назад: 4 3596 a4345e5759 first commit лет назад: 4 3597 a4345e5759 first commit лет назад: 4 3598 a4345e5759 first commit лет назад: 4 3599 a4345e5759 first commit лет назад: 4 3600 a4345e5759 first commit лет назад: 4 3600_fsm a4345e5759 first commit лет назад: 4 3600_vm a4345e5759 first commit лет назад: 4 3601 a4345e5759 first commit лет назад: 4 3601_fsm a4345e5759 first commit лет назад: 4 3601_vm a4345e5759 first commit лет назад: 4 3602 a4345e5759 first commit лет назад: 4 3602_fsm a4345e5759 first commit лет назад: 4 3602_vm a4345e5759 first commit лет назад: 4 3603 a4345e5759 first commit лет назад: 4 3603_fsm a4345e5759 first commit лет назад: 4 3603_vm a4345e5759 first commit лет назад: 4 3604 a4345e5759 first commit лет назад: 4 3605 a4345e5759 first commit лет назад: 4 3606 a4345e5759 first commit лет назад: 4 3607 a4345e5759 first commit лет назад: 4 3608 a4345e5759 first commit лет назад: 4 3609 a4345e5759 first commit лет назад: 4 3712 a4345e5759 first commit лет назад: 4 3764 a4345e5759 first commit лет назад: 4 3764_fsm a4345e5759 first commit лет назад: 4 3764_vm a4345e5759 first commit лет назад: 4 3766 a4345e5759 first commit лет назад: 4 3767 a4345e5759 first commit лет назад: 4 3997 a4345e5759 first commit лет назад: 4 4143 a4345e5759 first commit лет назад: 4 4144 a4345e5759 first commit лет назад: 4 4145 a4345e5759 first commit лет назад: 4 4146 a4345e5759 first commit лет назад: 4 4147 a4345e5759 first commit лет назад: 4 4148 a4345e5759 first commit лет назад: 4 4149 a4345e5759 first commit лет назад: 4 4150 a4345e5759 first commit лет назад: 4 4151 a4345e5759 first commit лет назад: 4 4152 a4345e5759 first commit лет назад: 4 4153 a4345e5759 first commit лет назад: 4 4154 a4345e5759 first commit лет назад: 4 4155 a4345e5759 first commit лет назад: 4 4156 a4345e5759 first commit лет назад: 4 4157 a4345e5759 first commit лет назад: 4 4158 a4345e5759 first commit лет назад: 4 4159 a4345e5759 first commit лет назад: 4 4160 a4345e5759 first commit лет назад: 4 4161 a4345e5759 first commit лет назад: 4 4162 a4345e5759 first commit лет назад: 4 4163 a4345e5759 first commit лет назад: 4 4164 a4345e5759 first commit лет назад: 4 4165 a4345e5759 first commit лет назад: 4 4166 a4345e5759 first commit лет назад: 4 4167 a4345e5759 first commit лет назад: 4 4168 a4345e5759 first commit лет назад: 4 4169 a4345e5759 first commit лет назад: 4 4170 a4345e5759 first commit лет назад: 4 4171 a4345e5759 first commit лет назад: 4 4172 a4345e5759 first commit лет назад: 4 4173 a4345e5759 first commit лет назад: 4 4174 a4345e5759 first commit лет назад: 4 5002 a4345e5759 first commit лет назад: 4 548 a4345e5759 first commit лет назад: 4 549 a4345e5759 first commit лет назад: 4 6102 a4345e5759 first commit лет назад: 4 6104 a4345e5759 first commit лет назад: 4 6106 a4345e5759 first commit лет назад: 4 6110 a4345e5759 first commit лет назад: 4 6111 a4345e5759 first commit лет назад: 4 6112 a4345e5759 first commit лет назад: 4 6113 a4345e5759 first commit лет назад: 4 6117 a4345e5759 first commit лет назад: 4 826 a4345e5759 first commit лет назад: 4 827 a4345e5759 first commit лет назад: 4 828 a4345e5759 first commit лет назад: 4 PG_VERSION a4345e5759 first commit лет назад: 4 pg_filenode.map a4345e5759 first commit лет назад: 4 tum/soc - Gogs: Simplico Git Service

Keine Beschreibung

celery.py 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # IRIS Source Code
  2. # Copyright (C) 2021 - Airbus CyberSecurity (SAS)
  3. # ir@cyberactionlab.net
  4. #
  5. # This program is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU Lesser General Public
  7. # License as published by the Free Software Foundation; either
  8. # version 3 of the License, or (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. # Lesser General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU Lesser General Public License
  16. # along with this program; if not, write to the Free Software Foundation,
  17. # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. from celery import Celery
  19. def make_celery(app):
  20. celery = Celery(
  21. app.import_name,
  22. config_source=app.config.get('CELERY')
  23. )
  24. class ContextTask(celery.Task):
  25. def __call__(self, *args, **kwargs):
  26. with app.app_context():
  27. return self.run(*args, **kwargs)
  28. celery.Task = ContextTask
  29. return celery