mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
CE-936 - Move adding default schedulableTypes in instance to Enricher
This commit is contained in:
@ -77,6 +77,7 @@ import com.kingsrook.qqq.backend.core.processes.implementations.bulk.insert.Bulk
|
|||||||
import com.kingsrook.qqq.backend.core.processes.implementations.bulk.insert.BulkInsertTransformStep;
|
import com.kingsrook.qqq.backend.core.processes.implementations.bulk.insert.BulkInsertTransformStep;
|
||||||
import com.kingsrook.qqq.backend.core.processes.implementations.etl.streamedwithfrontend.ExtractViaQueryStep;
|
import com.kingsrook.qqq.backend.core.processes.implementations.etl.streamedwithfrontend.ExtractViaQueryStep;
|
||||||
import com.kingsrook.qqq.backend.core.processes.implementations.etl.streamedwithfrontend.StreamedETLWithFrontendProcess;
|
import com.kingsrook.qqq.backend.core.processes.implementations.etl.streamedwithfrontend.StreamedETLWithFrontendProcess;
|
||||||
|
import com.kingsrook.qqq.backend.core.scheduler.QScheduleManager;
|
||||||
import com.kingsrook.qqq.backend.core.utils.CollectionUtils;
|
import com.kingsrook.qqq.backend.core.utils.CollectionUtils;
|
||||||
import com.kingsrook.qqq.backend.core.utils.ListingHash;
|
import com.kingsrook.qqq.backend.core.utils.ListingHash;
|
||||||
import com.kingsrook.qqq.backend.core.utils.StringUtils;
|
import com.kingsrook.qqq.backend.core.utils.StringUtils;
|
||||||
@ -159,6 +160,18 @@ public class QInstanceEnricher
|
|||||||
}
|
}
|
||||||
|
|
||||||
enrichJoins();
|
enrichJoins();
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// if the instance DOES have 1 or more scheduler, but no schedulable types, //
|
||||||
|
// then go ahead and add the default set that qqq knows about //
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
if(CollectionUtils.nullSafeHasContents(qInstance.getSchedulers()))
|
||||||
|
{
|
||||||
|
if(CollectionUtils.nullSafeIsEmpty(qInstance.getSchedulableTypes()))
|
||||||
|
{
|
||||||
|
QScheduleManager.defineDefaultSchedulableTypesInInstance(qInstance);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -102,15 +102,6 @@ public class QScheduleManager
|
|||||||
{
|
{
|
||||||
qScheduleManager = new QScheduleManager(qInstance, systemUserSessionSupplier);
|
qScheduleManager = new QScheduleManager(qInstance, systemUserSessionSupplier);
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////
|
|
||||||
// if the instance doesn't have any schedulable types defined, //
|
|
||||||
// then go ahead and add the default set that qqq knows about //
|
|
||||||
/////////////////////////////////////////////////////////////////
|
|
||||||
if(CollectionUtils.nullSafeIsEmpty(qInstance.getSchedulableTypes()))
|
|
||||||
{
|
|
||||||
defineDefaultSchedulableTypesInInstance(qInstance);
|
|
||||||
}
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// initialize the scheduler(s) we're configured to use //
|
// initialize the scheduler(s) we're configured to use //
|
||||||
// do this, even if we won't start them - so, for example, a web server can still be aware of schedules in the application //
|
// do this, even if we won't start them - so, for example, a web server can still be aware of schedules in the application //
|
||||||
|
Reference in New Issue
Block a user