Skip to content
Discussion options

You must be logged in to vote

After calling schedule_by_time as a result you will get CreatedSchedule object like this (code source):

classCreatedSchedule(Generic[_ReturnType]):
"""A schedule that has been created."""def__init__(
self,
kicker: "AsyncKicker[Any,_ReturnType]",
source: ScheduleSource,
task: ScheduledTask,
) ->None:
self.kicker=kickerself.source=sourceself.task=taskself.schedule_id=task.schedule_id

To update schedule time you can use fields from this object to delete previous schedule and add a new one with different time:

# It's a pseudocode to demonstrate this idea:# 1) Create schedule source schedule_source=

Replies: 1 comment

Comment options

danfimov
Nov 10, 2025
Collaborator

You must be logged in to vote
0 replies
Answer selected bycasper-71
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@casper-71@danfimov