mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
CE-936 - Move per-record pause & resume to run on quartzJob tables, not trigger; update previewMessage
This commit is contained in:
@ -52,11 +52,12 @@ public class PauseQuartzJobsProcess extends AbstractLoadStep implements MetaData
|
|||||||
@Override
|
@Override
|
||||||
public QProcessMetaData produce(QInstance qInstance) throws QException
|
public QProcessMetaData produce(QInstance qInstance) throws QException
|
||||||
{
|
{
|
||||||
String tableName = "quartzTriggers";
|
String tableName = "quartzJobDetails";
|
||||||
|
|
||||||
return StreamedETLWithFrontendProcess.processMetaDataBuilder()
|
return StreamedETLWithFrontendProcess.processMetaDataBuilder()
|
||||||
.withName(getClass().getSimpleName())
|
.withName(getClass().getSimpleName())
|
||||||
.withLabel("Pause Quartz Jobs")
|
.withLabel("Pause Quartz Jobs")
|
||||||
|
.withPreviewMessage("This is a preview of the jobs that will be paused.")
|
||||||
.withTableName(tableName)
|
.withTableName(tableName)
|
||||||
.withSourceTable(tableName)
|
.withSourceTable(tableName)
|
||||||
.withDestinationTable(tableName)
|
.withDestinationTable(tableName)
|
||||||
|
@ -52,11 +52,12 @@ public class ResumeQuartzJobsProcess extends AbstractLoadStep implements MetaDat
|
|||||||
@Override
|
@Override
|
||||||
public QProcessMetaData produce(QInstance qInstance) throws QException
|
public QProcessMetaData produce(QInstance qInstance) throws QException
|
||||||
{
|
{
|
||||||
String tableName = "quartzTriggers";
|
String tableName = "quartzJobDetails";
|
||||||
|
|
||||||
return StreamedETLWithFrontendProcess.processMetaDataBuilder()
|
return StreamedETLWithFrontendProcess.processMetaDataBuilder()
|
||||||
.withName(getClass().getSimpleName())
|
.withName(getClass().getSimpleName())
|
||||||
.withLabel("Resume Quartz Jobs")
|
.withLabel("Resume Quartz Jobs")
|
||||||
|
.withPreviewMessage("This is a preview of the jobs that will be resumed.")
|
||||||
.withTableName(tableName)
|
.withTableName(tableName)
|
||||||
.withSourceTable(tableName)
|
.withSourceTable(tableName)
|
||||||
.withDestinationTable(tableName)
|
.withDestinationTable(tableName)
|
||||||
|
Reference in New Issue
Block a user