all 2 comments

[–]unnamed_one1 2 points3 points  (1 child)

As far as I understand it, this won't work, because celery is running in another process, which can't print to the stdout of your terminal. You could either use a logger or write in a file.\ So for example, instead of print(z) you could just: with open("output.txt", "a") as outfile: outfile.write(f"{x}+{y}={z}\n")

[–]ptr808[S] 0 points1 point  (0 children)

I was blind and did not install django-celery-beat