hello friends, I keep getting the following error: NotImplementedError: No result backend configured. Please see the documentation for more information.
I noticed that when I'm running my workers this is showing on the config
results: disabled://
malinoff
lknd: lowercase settings are celery4-only
lknd
oh
malinoff
on celery3 you have to use RESULT_BACKEND
lknd
thank you, I suppose I'm running off the wrong version all along then
I wanna thank you for all the help the other day by the way malinoff
I learned a whole lot by going through the documentation later
malinoff
lknd: welcome
lknd
mostly regarding the task calls, and how the broker came into play
this is a lot of fun, I wish I had an elective class for this at university
xtreak joined the channel
Debnet joined the channel
rickmak joined the channel
ogny joined the channel
the_rat joined the channel
rickmak joined the channel
the_rat has quit
rickmak joined the channel
auvipy joined the channel
malinoff: the result of a task should be whatever is being returned right?
malinoff
lknd: yes
lknd
hm, for some reason I'm returning a string from my task.. the task executes properly but when checking the celery log I get the task id and the result as None
and common issues that would lead to my result not being the return value?
rather than a custom DB, I was thinking more along the lines of decoupling the worker process
and not relying on that celery magic
in case we change from celery to some other queue task down the line
Debnet`Work joined the channel
malinoff
That's not how celery is supposed to be used :) Celery is a framework, and changing it to an other task queue implementation won't be easy anyway
rickmak joined the channel
Just imagine how much work you'll need to do in order to replace django with, say, flask
(not a hello world app, but a somehow mature project, of course)
lknd
true, what I thought was definitely that it would be a lot of work
I've been tracing through the source code
and definitely not something to get done in a couple of days, to understand at a micro level at least
our lead has this urge for us to look into decoupling and making everything as modular as possible (this included!) but I believe that for time's sake I will talk him out of it
xtreak joined the channel
I believe it would take longer to literally re-write celery magic than to adjust the code down the line if needed to for a new task queue
malinoff
meh
celery is already modular, you only need to use its modular system - that's all
Debnet has quit
lknd
I can see that, but what I meant was more along the lines of hm
our lead wanted to emulate what celery does at a low level
so that if we switch to say hadoop, it can sort of "work" without much modification
malinoff has quit
rickmak has quit
rickmak_ joined the channel
malinoff joined the channel
the_rat joined the channel
the_rat has quit
malinoff
lknd: are you going to use hadoop as message broker? :)
lknd
have never used hadoop tbh, but I thought it can be used as a job scheduler?
malinoff:
benjamin_
Oozie is an hadoop job scheduler
But yarn is a more low level job scheduling with queues system and a FIFO / fair share rules
malinoff
well, if you're going to use hadoop you're likely to use hadoop-specific tools
lknd
honestly I need to better wrap my head regarding the necessity to decouple the worker part in case of future scaling
malinoff
lknd: imo if you're choosing hadoop to solve one problem, you'll have two problems
lknd
i think that was more of a generic example rather than what would really happen!
in general the idea is that decoupling the worker part will allow us to easily switch between Celery/Hadoop/whatever third party API if needed for scaling
at least that's what I can make out of it
Tawonga joined the channel
malinoff
lknd: you can't be prepared for everything. There's no generic solution to switch implementations on demand - there always be implementation-specific warts and gotchas
and you can't do anything with it
you _will_ need to spend developers effort in order to replace parts of your system
but you know the funniest thing - you might not need to replace anything at all!
lknd
oh?
I agree with your thought regarding it
at least, from my ignorance
that's what I made it out to be
malinoff has quit
auvipy
what about using apache kafka?
Debnet`Laptop joined the channel
malinoff joined the channel
xtreak has quit
Debnet`Work has quit
rickmak_ joined the channel
hanshoi joined the channel
Debnet`Laptop has quit
Debnet`Laptop joined the channel
darkelda joined the channel
darkelda has quit
darkelda joined the channel
the_rat joined the channel
auvipy has quit
xtreak joined the channel
the_rat_ joined the channel
xtreak has quit
xtreak joined the channel
the_rat_ has quit
xtreak has quit
hanshoi has quit
malinoff has quit
malinoff joined the channel
malinoff has quit
ogny has quit
ogny joined the channel
lknd
does anyone know what the result in celery_taskmeta is encoded in?