Commit 840dd333 by Szeberényi Imre

python3.9

parent 0433b382
CELERY_RESULT_BACKEND = 'amqp://' result_backend = 'amqp://'
CELERY_TASK_RESULT_EXPIRES = 300 task_result_expires = 300
CELERY_ENABLE_UTC = True result_expires = 300
CELERY_ACCEPT_CONTENT = ['json', 'pickle', 'msgpack', 'yaml'] timezone = 'utc'
CELERY_TASK_SERIALIZER = 'json' enable_utc = True
CELERY_RESULT_SERIALIZER = 'json' accept_content = ['json', 'pickle_v2']
task_serializer = 'json'
result_serializer = 'pickle_v2'
task_store_errors_even_if_ignored = True
""" Celery module for libvirt RPC calls. """ """ Celery module for libvirt RPC calls. """
from celery import Celery from celery import Celery
import serializers
from kombu import Queue, Exchange from kombu import Queue, Exchange
from os import getenv from os import getenv
......
setuptools<58 # build tooling
amqp==1.4.9 setuptools>=58,<70
billiard==3.3.0.23 wheel
celery==3.1.18
decorator==3.4.0 # Celery 4 ökoszisztéma (egymással kompatibilis verziók)
future==0.18.2 celery==4.4.7
GitPython==3.1.18 kombu==4.6.11
importlib-metadata==4.8.3 amqp==2.6.1
kombu==3.0.30 billiard==3.6.4.0
lxml==3.4.2 vine==1.3.0
libvirt-python==7.10.0 pytz>=2021.3,<2025.0
pillow==8.4.0
psutil==4.4.2 # a többi csomag modernizálva, de kompatibilitásra figyelve
pytz==2021.3 decorator>=4.4.2,<5.2
smmap==5.0.0 future>=0.18.3
typing_extensions==4.0.1 GitPython>=3.1.18,<3.2
vine==5.0.0 smmap>=5.0.0,<6.0
zipp==3.6.0 lxml>=4.9.3,<5.0
libvirt-python==10.0.0
pillow>=8.4.0,<10.0
psutil>=5.9.0,<6.0
typing-extensions>=4.0.1,<5.0
# csak régebbi Pythonnál szükségesek — 3.9-en általában elhagyhatók,
# de ha kódban importáljátok, maradhatnak így, markerrel:
importlib-metadata>=4.8.3,<5.0 ; python_version < "3.10"
zipp>=3.6.0,<4.0 ; python_version < "3.10"
# tesztkeret, ha még használjátok
nose==1.3.7 nose==1.3.7
setuptools<58 setuptools>=58,<70
pip<21 pip<24
# serializers.py
from kombu.serialization import register
import pickle
def pickle_v2_dumps(obj):
return pickle.dumps(obj, protocol=2)
def pickle_v2_loads(s):
return pickle.loads(s)
register(
'pickle_v2',
pickle_v2_dumps,
pickle_v2_loads,
content_type='application/x-pickle',
content_encoding='binary',
)
""" Celery module for libvirt RPC calls. """ """ Celery module for libvirt RPC calls. """
from celery import Celery from celery import Celery
import serializers
from kombu import Queue, Exchange from kombu import Queue, Exchange
from os import getenv from os import getenv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment