Can sympy run in side celery task?

On Sunday, August 9, 2020 at 10:14:30 PM UTC+3, Paul Royik wrote:
>
> Thank you.
>
> On Saturday, August 8, 2020 at 11:51:13 PM UTC+3, Aaron Meurer wrote:
>>
>> I wouldn't recommend using threads with SymPy. Even if it works (which 
>> I expect it won't because we do have global things like the cache), 
>> the Python GIL would prevent it from truly working concurrently. 
>> Instead, use different processes. 
>>
>> Aaron Meurer 
>>
>> On Sat, Aug 8, 2020 at 2:32 PM Paul Royik <distan...@gmail.com> wrote: 
>> > 
>> > If sympy is run in multi-threaded environment, like apache, is it safe? 
>> Does cache require special handling? 
>> > 
>> > On Saturday, August 8, 2020 at 7:22:26 PM UTC+3, Oscar wrote: 
>> >> 
>> >> I don't know the inner workings of SymPy Live but I would imagine that 
>> >> it uses a separate process for each user so that it isn't really 
>> >> running SymPy in a multi-threaded environment. 
>> >> 
>> >> On Sat, 8 Aug 2020 at 16:09, Paul Royik <distan...@gmail.com> wrote: 
>> >> > 
>> >> > If a couple of users use sympy at the same time (like live.sympy.org), 
>> is it considered safe? 
>> >> > What about cache? 
>> >> > 
>> >> > -- 
>> >> > You received this message because you are subscribed to the Google 
>> Groups "sympy" group. 
>> >> > To unsubscribe from this group and stop receiving emails from it, 
>> send an email to sy...@googlegroups.com. 
>> >> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sympy/03913cb1-7348-4236-8c68-a83104713928o%40googlegroups.com.
>>  
>>
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups "sympy" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to sy...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sympy/469ffd55-50ce-4261-a763-eb20a248b81do%40googlegroups.com.
>>  
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/3d08f6c2-fc77-4dd4-8c2b-da1e28cdfce3o%40googlegroups.com.

Reply via email to