Add intended_date_kwarg field to Schedule (#62)

Co-authored-by: Marc Sabatier <marc.sabatier@eco-adapt.com>
This commit is contained in:
msabatier
2023-01-17 22:52:11 +01:00
committed by GitHub
co-authored by Marc Sabatier
parent 865b1a5ba8
commit a013591de5
9 changed files with 455 additions and 357 deletions
+2
View File
@@ -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