mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 01:58:11 +08:00
Add intended_date_kwarg field to Schedule (#62)
Co-authored-by: Marc Sabatier <marc.sabatier@eco-adapt.com>
This commit is contained in:
co-authored by
Marc Sabatier
parent
865b1a5ba8
commit
a013591de5
@@ -691,6 +691,8 @@ def scheduler(broker: Broker = None):
|
||||
if type(args) != tuple:
|
||||
args = (args,)
|
||||
q_options = kwargs.get("q_options", {})
|
||||
if s.intended_date_kwarg:
|
||||
kwargs[s.intended_date_kwarg] = s.next_run.isoformat()
|
||||
if s.hook:
|
||||
q_options["hook"] = s.hook
|
||||
# set up the next run time
|
||||
|
||||
Reference in New Issue
Block a user