I have a task I want to perform, consisting of multiple steps ... some place in the middle, I have something that (currently) needs to be performed by a human being ... so I was thinking of creating a task that ensures the existance of a ticket in our ticketing system - and will retry every few minutes until that ticket is resolved ... after that, the task will continue on
the_drow
You can pass completely different arguments to the same task on retry
Kvisle
ah
then I can just add ticket information
Nizumzen has quit
qba73 has quit
anth0ny joined the channel
rhymes has quit
tyrannosaurus_be joined the channel
codeitloadit joined the channel
celhead has quit
maryokhin joined the channel
SoftwareMaven joined the channel
pers3us has quit
pers3us joined the channel
pilt has quit
mahmoudimus has quit
bkuberek joined the channel
pers3us has quit
cjellick has quit
cjellick joined the channel
bkuberek has quit
silverfix has quit
pfreixes has quit
italorossi joined the channel
theo_ joined the channel
theo_
hey all, has anyone use cassandra as backend ? i cant find a sample table definition for cassandra ? problem is i cant save results to the db...
theo_ has quit
asksol
theo_: someone solved that recently, could be in the issues, in the irc logs or on the mailing-list
no idea why it's not in the documentation
pilt joined the channel
anuvrat joined the channel
jr_ has quit
pilt has quit
wohglejm has quit
DctrWatson
the_drow the plan was to document when I used for the project I wrote it for... which never came to fruition =(
pilt joined the channel
Nizumzen joined the channel
pilt has quit
kikimeter joined the channel
mahmoudimus joined the channel
domino14 joined the channel
bullicon has quit
bkuberek joined the channel
pilt joined the channel
edulix has quit
edulix joined the channel
bmbouter is now known as bmbouter_lunch
kutenai has quit
bkuberek has quit
wanderer joined the channel
bed777 joined the channel
erikcw joined the channel
edulix has quit
kikimeter has quit
edulix joined the channel
wanderer has quit
malinoff joined the channel
pilt has quit
bullicon joined the channel
bullicon has quit
pers3us joined the channel
wanderer joined the channel
edulix has quit
wanderer has quit
edulix joined the channel
bkuberek joined the channel
anuvrat has quit
bed777 has quit
wanderer joined the channel
mdf joined the channel
bmbouter_lunch is now known as bmbouter
sthzg joined the channel
celhead joined the channel
mdf
hi. is there a way to .get() the result from AsyncResult without removing it from the broker?
i was hoping to build a system that first gets the result, then saves it safely into a database and only after that tells the broker to delete it
malinoff
mdf, probably you should specify no_ack=False to get() call and ack the message by yourself
sthzg
hello. I am entering the world of unit testing with celery and wondered if you could recommend good articles about it? or maybe repositories of some packages on github with good real world examples?
malinoff
until the message is not acked, it shouldn't be removed from the broker afaik
mdf
malinoff: yeah, i thought no_ack=False would do that. however, when i tested that by trying to .get() twice, the second .get() didn't get the result by that task id anymore
slips joined the channel
malinoff
mdf, AsyncResult instance caches the result received from the first get call, so it should return something
bed777 joined the channel
mdf
malinoff: ah, the thing is, i made this quick'n'dirty script that tries to get the result from AsyncResult, and i just ran the script twice
malinoff
mdf, with no_ack=False ?
mdf
malinoff: yep
anuvrat joined the channel
i didn't try other ways of looking at the task queue in between though...
maybe i'll play around a bit and then come back if i can't solve it. thanks for the pointers, malinoff!
malinoff
mdf, can you run that twice in a single script? Don't use the same AsyncResult instance, for the second .get call create another instance (from celery.result import AsyncResult; res2 = AsyncResult(res1.id); res2.get())
mdf
malinoff: ok, i'll try that
sthzg
more specifically, if one tasks starts a group of tasks, is there any way to deactivate all called chains/groups ... and only test some of the inner variables of that task (or its return value)?
mdf
malinoff: ok, that way i get the result from both of them, even with no_ack=True
(and even with a sleep(2) in between the get calls)
bed777 has quit
malinoff
mdf, right, because it also caches on the backend side...
It looks like something is acking the task result in your two-dirty-scripts
mdf
could it be something from django settings i'm importing?
malinoff
I don't know :)
gondoi is now known as zz_gondoi
mdf
well, thanks anyway! i think i know a bit more about where to look at now :)