hi. When I use output=StringIO() in the tasks, it shared the same memory between the worker processes. How could I declare the isolated StringIO() for each worker? Thx a lot.
@app.task
def workon():
f = StringIO()
print(f)
f.close()
The log is:
[2016-07-04 11:53:07,084: WARNING/Worker-2] <_io.StringIO object at 0x103f6c708>
[2016-07-04 11:53:07,087: WARNING/Worker-3] <_io.StringIO object at 0x103f6c708>
[2016-07-04 11:53:07,086: WARNING/Worker-1] <_io.StringIO object at 0x103f6c708>
[2016-07-04 11:53:07,090: WARNING/Worker-2] <_io.StringIO object at 0x103f6c708>
[2016-07-04 11:53:07,090: WARNING/Worker-4] <_io.StringIO object at 0x103f6c708>
[2016-07-04 11:53:07,093: WARNING/Worker-1] <_io.StringIO object at 0x103f6c708>
[2016-07-04 11:53:07,093: WARNING/Worker-3] <_io.StringIO object at 0x103f6c708>
sorry. I send multiple lines.
domino14_ joined the channel
alas, unhappy with Celery. Love & Hate.
netcrime joined the channel
enigma_raz joined the channel
netcrime
Can anyone suggest good video tutorial for using Celery with Django?
the_rat joined the channel
Debnet joined the channel
the_rat has quit
enigma_raz joined the channel
enigma_raz joined the channel
atomekk joined the channel
homeshlice has quit
hubert_ has quit
TauPan
(I think hubert_'s StringIO() problem is just python, not celery)
(Yeah, he's definitely using the same StringIO object across all forks, because he tried to initialize it in the task method header, instead of using the recommended way of doing it in the method body.)
there is no software engineering channel but i know there are engineers here. I am starting my own IT consulting company and we want to propose and pitch to managers of a company. Assuming they agree we should build the software for them. Are to charge for consultation or say collect some initial payment before providing the Software Requirement Specification. Saying this because these could take days or so to prepare what if after this stage the
client doesn’t want the software for some reason?