HomePhabricator

Add a way to stop scheduleEvery instances.

Authored by deadalnix on Nov 6 2018, 14:54.

Description

Add a way to stop scheduleEvery instances.

Summary:
Once a task is scheduled to happen on a regular basis, there are no ways to stop it. This diff fixes it.

It does so by making the scheduled function return a bool, which will determine if it is to be executed again.

Test Plan: Add a test case.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: Fabien

Subscribers: teamcity

Differential Revision: https://reviews.bitcoinabc.org/D2011

Details

Committed
deadalnixNov 6 2018, 18:47
Pushed
schancelNov 6 2018, 20:32
Reviewer
Fabien
Differential Revision
D2011: Add a way to stop scheduleEvery instances.
Parents
rSTAGING312a99a9d913: Migrate test framework from deprecated optparse to argparse
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/5692, tag: phabricator/base/5686