Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tinytask redefine miss/beat #284

Closed
trydofor opened this issue Aug 3, 2024 · 0 comments
Closed

tinytask redefine miss/beat #284

trydofor opened this issue Aug 3, 2024 · 0 comments
Labels
break :boom: breaking change feature :star: new feature
Milestone

Comments

@trydofor
Copy link
Owner

trydofor commented Aug 3, 2024

miss = 0, and

N0 < now < next - (N1 -N0) * 75%

N0--now----------......N1
|_____|_______75%______|

miss > 0, and

N0 < now < N0 + miss

N0--now--- N0+miss
|_____|___...
|___________|miss
## Within how many seconds of a misfire, execution is required, not use Default config.
## * `<0` - execute as `0` if now + miss * 1000 >= 0
## * `0` - execute if N0 < now <= N0 + (N1-N0) * 25% < N1
## * `>0` - execute if N1 < now <= N1 + miss * 1000
#wings.tiny.task.define[default].timing-miss=0

## the interval seconds of heartbeat and health-check, not use Default config.
## it is considered as an exception if the last_exec is more than 2 heartbeats away from now.
## * `<0` - calculate as `0` if now + beat * 1000 >= 0
## * `0` - calculate, when cron, calc next_exec from last_exec, others, max rate and idle
## * `>0` - fixed positive seconds
#wings.tiny.task.define[default].timing-beat=0
@trydofor trydofor added the feature :star: new feature label Aug 3, 2024
@trydofor trydofor added this to the Batrider milestone Aug 3, 2024
@trydofor trydofor changed the title tinytask miss auto execute tinytask redefine miss of execute Aug 3, 2024
@trydofor trydofor added the break :boom: breaking change label Aug 3, 2024
@trydofor trydofor changed the title tinytask redefine miss of execute tinytask redefine miss/beat Aug 4, 2024
trydofor added a commit that referenced this issue Aug 4, 2024
trydofor added a commit that referenced this issue Aug 4, 2024
trydofor added a commit that referenced this issue Aug 4, 2024
trydofor added a commit that referenced this issue Aug 4, 2024
trydofor added a commit that referenced this issue Aug 4, 2024
trydofor added a commit that referenced this issue Aug 4, 2024
@trydofor trydofor closed this as completed Aug 7, 2024
trydofor added a commit that referenced this issue Aug 12, 2024
trydofor added a commit that referenced this issue Aug 13, 2024
@trydofor trydofor mentioned this issue Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
break :boom: breaking change feature :star: new feature
Projects
Archived in project
Development

No branches or pull requests

1 participant