Python Forum
dynamically setting the time django-crontab
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dynamically setting the time django-crontab
#1
I have implemented a Django cron functionality.I defined the time interval in settings.py file like
CRONJOBS = [
    ('*/1 * * * *', 'sampleapp.cron.scheduled_job')
]
But this project will be linked with UI .The requirement is that the user will set a future time for cron activity from the screen and we will be saving it in DB. So we hav to pick that time and run the job.

So it will be dynamic time.

so what change should i make in settings.py file to get a dynamic input
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,339 Jun-30-2019, 12:21 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020