Thank you for recommendations,

Because I never use this Celery-beat, if possible you can give some sample
for example for someone who used it before

thanks

On Sat, 12 Jun 2021 at 06:36, Nikeet NA <nik...@exiverlabs.co.in> wrote:

> You should use celery for running cron jobs.
>
> On Friday, 11 June 2021 at 19:49:41 UTC+5:30 kells...@gmail.com wrote:
>
>>
>> What I would do in such case, is to write a function somewhere that
>> checks if a user applied for a leave, then check if the leave time is
>> within a day, then do whatever you want, like setting is_active to False.
>> Then set the cron job to run this function every day, every hour, or
>> however you'd like.
>> On Fri, Jun 11, 2021 at 15:10 Chetan Ganji <ganji....@gmail.com> wrote:
>>
>>> This will help you
>>>
>>> https://pypi.org/project/django-celery-beat/
>>>
>>>
>>> On Fri, Jun 11, 2021, 5:34 PM Eugene TUYIZERE <eugenet...@gmail.com>
>>> wrote:
>>>
>>>> Dear Team,
>>>>
>>>> In my application, I want a user to set for example a leave plan in the
>>>> system and the system notify the user by email for example one day before
>>>> the start leave date. At the same time the system disables the user in the
>>>> system. Here I have a field *is_active *and I want the system to set
>>>> it to False from the leave date to the end date. And also to set Ongoing
>>>> status on the leave plan user list. I heard somewhere that Django Cron Job
>>>> can do this but I never use it and I do not know how to use it in the
>>>> application.
>>>> If someone has used  it for some time please I need help.
>>>>
>>>> Thank you
>>>>
>>>> --
>>>> *Eugene*
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CABxpZHt2hqPgNU%2BvyDb8Eua%2B6_OMM8H6xsMzTgJ-73-0erfmKw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CABxpZHt2hqPgNU%2BvyDb8Eua%2B6_OMM8H6xsMzTgJ-73-0erfmKw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAMKMUjvErhZDkdA1ZYPOxHq4yuEWk%3DKUsbrgSyX3LOm7FBhFyw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAMKMUjvErhZDkdA1ZYPOxHq4yuEWk%3DKUsbrgSyX3LOm7FBhFyw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> KeLLs
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/bf837066-b07b-47fb-a404-098b64516ec0n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/bf837066-b07b-47fb-a404-098b64516ec0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
*TUYIZERE Eugene*



*Msc Degree in Mathematical Science*

*African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
Garden-Lime, Cameroon*

Bsc in Computer Science

*UR-Nyagatare Campus*

Email: eugene.tuyiz...@aims-cameroon.org
           eugenetuyiz...@gmail.com

Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABxpZHtA5wbnggeqJCPbO_LRseiXMj8KymkwDiuaY_QX2VNKuw%40mail.gmail.com.

Reply via email to