-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add option to pause/resume individual jobs with identity - add Scheduler#isPaused(identity) - show the configured values in the schedules table; e.g. "{cron.expr} configured as */5 * * * * ?" - fix links to config expressions in the docs
- Loading branch information
Showing
17 changed files
with
194 additions
and
34 deletions.
There are no files selected for viewing
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
extensions/scheduler/deployment/src/main/resources/dev-templates/embedded.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<a href="{urlbase}/schedules" class="badge badge-light"> | ||
<i class="fa fa-clock fa-fw"></i> | ||
Schedules <span class="badge badge-light">{info:schedulerContext.scheduledMethods.size()}</span></a> | ||
Scheduled Methods <span class="badge badge-light">{info:schedulerContext.scheduledMethods.size()}</span></a> |
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
1 change: 1 addition & 0 deletions
1
extensions/scheduler/deployment/src/main/resources/dev-templates/tags/configVal.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{#set val=info:configLookup.apply(it)}{#if val == it}<code>{it}</code>{#else}<code>{it}</code> configured as <code>{val}</code>{/if}{/set} |
26 changes: 22 additions & 4 deletions
26
extensions/scheduler/deployment/src/main/resources/dev-templates/tags/scheduleInfo.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
{#if it.cron} | ||
<code>{it.cron}</code> | ||
{#configVal it.cron /} | ||
{#else} | ||
Every <code>{it.every}</code> | ||
Every {#configVal it.every /} | ||
{/if} | ||
{#if it.identity} | ||
with identity {#configVal it.identity /} | ||
{#if info:scheduler.running} | ||
{#if info:scheduler.isPaused(it.identity)} | ||
<form method="post" enctype="application/x-www-form-urlencoded" style="float:right;"> | ||
<input type="hidden" name="action" value="resumeJob"> | ||
<input type="hidden" name="identity" value="{it.identity}"> | ||
<button type="submit" class="btn btn-primary" type="submit"><i class="far fa-play-circle"></i> </button> | ||
</form> | ||
{#else} | ||
<form method="post" enctype="application/x-www-form-urlencoded" style="float:right;"> | ||
<input type="hidden" name="action" value="pauseJob"> | ||
<input type="hidden" name="identity" value="{it.identity}"> | ||
<button type="submit" class="btn btn-primary" type="submit"><i class="far fa-pause-circle"></i> </button> | ||
</form> | ||
{/if} | ||
{/if} | ||
{/if} | ||
{#if it.delay > 0} | ||
(with delay {it.delay} {it.delayUnit.toString.toLowerCase}) | ||
{#else if !it.delayed.empty} | ||
(delayed for {it.delayed}) | ||
{/if} | ||
(delayed for {#configVal it.delayed /}) | ||
{/if} |
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
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
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
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
Oops, something went wrong.