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):

class CreatedSchedule(Generic[_ReturnType]):
    """A schedule that has been created."""

    def __init__(
        self,
        kicker: "AsyncKicker[Any,_ReturnType]",
        source: ScheduleSource,
        task: ScheduledTask,
    ) -> None:
        self.kicker = kicker
        self.source = source
        self.task = task
        self.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

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