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
RUNNERNEXT function on standalone #1088
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hbs
requested changes
Apr 5, 2022
warp10/src/main/java/io/warp10/script/functions/RUNNERNEXT.java
Outdated
Show resolved
Hide resolved
warp10/src/main/java/io/warp10/script/functions/RUNNERNEXT.java
Outdated
Show resolved
Hide resolved
warp10/src/main/java/io/warp10/script/functions/RUNNERNEXT.java
Outdated
Show resolved
Hide resolved
warp10/src/main/java/io/warp10/script/functions/RUNNERNEXT.java
Outdated
Show resolved
Hide resolved
doc OK. https://warp10.io/doc/RUNNERNEXT |
Both combined can allow synchronization on absolute time easily:
|
Should rename the functions RUNNERIN and RUNNERAT
…On Sat, Apr 9, 2022, 23:58 Pierre Papin ***@***.***> wrote:
- Fixed overflow if MAXLONG RUNNERNEXT
- introduced RUNNERPROG to schedule at a given time:
"2022-04-09T21:48:00.0Z" TOTIMESTAMP RUNNERPROG
Both combined can allow synchronization on absolute time easily:
"2022-04-09T21:48:00.0Z" TOTIMESTAMP 'startsync' STORE
$startsync NOW >
<%
MAXLONG RUNNERNEXT
$startsync RUNNERPROG
%>
<%
1 h RUNNERNEXT
%>
IFTE
—
Reply to this email directly, view it on GitHub
<#1088 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABZYMRGXOBZLHCBEA7BSE3VEH4QDANCNFSM5STHAZKA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Function renamed + Execution counter does not reset when disabling and reenabling the runner, you have to rename the runner. |
hbs
requested changes
May 3, 2022
warp10/src/main/java/io/warp10/standalone/StandaloneScriptRunner.java
Outdated
Show resolved
Hide resolved
warp10/src/main/java/io/warp10/standalone/StandaloneScriptRunner.java
Outdated
Show resolved
Hide resolved
warp10/src/main/java/io/warp10/standalone/StandaloneScriptRunner.java
Outdated
Show resolved
Hide resolved
warp10/src/main/java/io/warp10/standalone/StandaloneScriptRunner.java
Outdated
Show resolved
Hide resolved
ready for new review. |
hbs
requested changes
Jun 9, 2022
…orm into runnerNextStandalone
ready for new review. |
hbs
requested changes
Jul 13, 2022
Done. Doc updated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This new function allow to reschedule a runner from the runner itself.
To test, generate a token with this capability:
Use it with CAPADD inside your runner. From the runner, you can schedule the next iteration to "start of the script" + the period you want:
10 s RUNNERNEXT
It will fail if the requested period is less than the one defined in capability.
The function have no effect on a standalone with remote runner execution, or on a distributed instance.