I made worker, for control panel. He based on flask as listener. Master send request(post with key and type of task) with task. As example task for backup all data on server. It mean start scenario of backup, preparation and then sending backups to storage.(just rsync, not "rocket science"). So does i need to use Celery? And does it require to use RabbitMQ or i can use "ortodox" sqlite with sqlalchemy? Thank you :)
In my modest opinion,using RabbitMQ, will be "monstrous mistake" for deliver 50 - 100 task per hour. Help me to choice right decision.
gpmidi has quit
Wertax joined the channel
bmonty joined the channel
Cromulent joined the channel
backjlack joined the channel
shalabhaggarwal joined the channel
atomekk joined the channel
shalabhaggarwal_ joined the channel
shalabhaggarwal has quit
shalabhaggarwal_ is now known as shalabhaggarwal
shalabhaggarwal has quit
shalabhaggarwal joined the channel
bmonty has quit
wenzhixue joined the channel
wenzhixu_ has quit
shalabhaggarwal_ joined the channel
shalabhaggarwal has quit
shalabhaggarwal_ is now known as shalabhaggarwal
Cromulent has quit
Oh god
runeh
Ravshan: there are plenty of different brokers and result backends you can use. If you already have a db, you can use that. Or redis or something else
aparo joined the channel
surabujin joined the channel
balboah joined the channel
redir has quit
Ergo^ joined the channel
racycle has quit
ninkotech has quit
toabctl joined the channel
ignas joined the channel
danfairs joined the channel
Ravshan has quit
ignas has quit
danfairs_ joined the channel
mvt joined the channel
mvt
heyho, how do i specific a queue with @periodic_task?
johnny22 joined the channel
johnnny22 has quit
found it, options={'queue': 'x'} :)
johnny22 has quit
johnnny22 joined the channel
MagnusGraviti joined the channel
MagnusGraviti
Hi guys! What should I do If I want to test periodic_task? I mean to test that at defined period something (what I defined) happend?
I have to use datetime to set necessary time but set it where?
mvt
@MagnusGraviti not really following your question
you want to make sure that the tests run?
uh tests = tasks :)
MagnusGraviti
yes
I have periodic task that must on 30 day send mails
and I want to cover it with test
not just call function as it is already covered with tests
but test mail is sent actually on defined period of time
mvt
oh on idea, to be honest I never test that period_tasks works
also, perhaps stupid but february doesn't have 30 days :P
MagnusGraviti
anyway thanks for trying to dive into my problem :)
yep
nice test for february :D
danfairs has quit
danfairs_ is now known as danfairs
I think I have to set requirement like 00-00 or necessary datetime somewhere… but I think also that celery takes it from system date and time...
MagnusGraviti1 joined the channel
MagnusGraviti has quit
toabctl_ joined the channel
toabctl has quit
mvt
MagnusGraviti1, tried to mock datetime.datetime?
MagnusGraviti1
I'll try now
and I decided to look how this part was tested in celery :P
celhead joined the channel
asksol
copelco: just mock the retry call and verify that it was called
achuni joined the channel
ionelmc joined the channel
MagnusGraviti1 has quit
fernando joined the channel
fernando is now known as Guest40536
Guest40536 is now known as fernandogrd
shalabhaggarwal_ joined the channel
shalabhaggarwal has quit
shalabhaggarwal_ is now known as shalabhaggarwal
toddw has quit
Furao joined the channel
cmplxen joined the channel
cmplxen_ joined the channel
shalabhaggarwal_ joined the channel
toddw joined the channel
Furao has quit
shalabhaggarwal has quit
shalabhaggarwal_ is now known as shalabhaggarwal
cmplxen has quit
Wertax_ joined the channel
MagnusGraviti joined the channel
toabctl_ has quit
alekibango_ joined the channel
Wertax has quit
eka has quit
alekibango has quit
eka joined the channel
Furao joined the channel
copelco has quit
Ravshan joined the channel
Ravshan
Hi again:_
I got TimeoutError: The operation timed out. when try different brokers. https://github.com/Masagin/FlaskCelery here my repo with test config. Can you help me?(call me moron, and show what i do wrong)
Thank you;)
Furao has quit
Furao joined the channel
runeh
Ravshan: could you paste the full stack trace to a paste bin?