Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
840dd333
authored
Nov 02, 2025
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python3.9
parent
0433b382
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
26 deletions
+60
-26
celeryconfig.py
+9
-6
netcelery.py
+1
-0
requirements/base.txt
+29
-18
requirements/install_first.txt
+2
-2
serializers.py
+18
-0
vmcelery.py
+1
-0
No files found.
celeryconfig.py
View file @
840dd333
CELERY_RESULT_BACKEND
=
'amqp://'
CELERY_TASK_RESULT_EXPIRES
=
300
CELERY_ENABLE_UTC
=
True
CELERY_ACCEPT_CONTENT
=
[
'json'
,
'pickle'
,
'msgpack'
,
'yaml'
]
CELERY_TASK_SERIALIZER
=
'json'
CELERY_RESULT_SERIALIZER
=
'json'
result_backend
=
'amqp://'
task_result_expires
=
300
result_expires
=
300
timezone
=
'utc'
enable_utc
=
True
accept_content
=
[
'json'
,
'pickle_v2'
]
task_serializer
=
'json'
result_serializer
=
'pickle_v2'
task_store_errors_even_if_ignored
=
True
netcelery.py
View file @
840dd333
""" Celery module for libvirt RPC calls. """
from
celery
import
Celery
import
serializers
from
kombu
import
Queue
,
Exchange
from
os
import
getenv
...
...
requirements/base.txt
View file @
840dd333
setuptools<58
amqp==1.4.9
billiard==3.3.0.23
celery==3.1.18
decorator==3.4.0
future==0.18.2
GitPython==3.1.18
importlib-metadata==4.8.3
kombu==3.0.30
lxml==3.4.2
libvirt-python==7.10.0
pillow==8.4.0
psutil==4.4.2
pytz==2021.3
smmap==5.0.0
typing_extensions==4.0.1
vine==5.0.0
zipp==3.6.0
# build tooling
setuptools>=58,<70
wheel
# Celery 4 ökoszisztéma (egymással kompatibilis verziók)
celery==4.4.7
kombu==4.6.11
amqp==2.6.1
billiard==3.6.4.0
vine==1.3.0
pytz>=2021.3,<2025.0
# a többi csomag modernizálva, de kompatibilitásra figyelve
decorator>=4.4.2,<5.2
future>=0.18.3
GitPython>=3.1.18,<3.2
smmap>=5.0.0,<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
requirements/install_first.txt
View file @
840dd333
setuptools
<58
pip<2
1
setuptools
>=58,<70
pip<2
4
serializers.py
0 → 100644
View file @
840dd333
# 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'
,
)
vmcelery.py
View file @
840dd333
""" Celery module for libvirt RPC calls. """
from
celery
import
Celery
import
serializers
from
kombu
import
Queue
,
Exchange
from
os
import
getenv
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment