NZTA\OktaAPI\Jobs\AbstractOktaSyncJob
This is being used to provide basic rescheduling of the current job and ability to define a list of additional jobs that can be queued once this job is completed.
We also provide the ability to set warning messages once a set threshold of
items are set to be deleted from the DB.
Synopsis
class AbstractOktaSyncJob
extends AbstractQueuedJob
implements
QueuedJob
{
- // members
- protected static array $additional_job_list = ;
- protected static integer $deleted_warning_threshold = 20;
- protected static integer $bulk_insert_pagination_limit = 500;
- protected static integer $bulk_update_pagination_limit = 300;
- // methods
- protected void scheduleNextExecution()
- protected void scheduleAdditionalJobs()
- protected void markJobAsDone()
- public LoggerInterface getLogger()
Hierarchy
Extends
- Symbiote\QueuedJobs\Services\AbstractQueuedJob
Implements
- Symbiote\QueuedJobs\Services\QueuedJob
Members
protected
- $additional_job_list — array
- $bulk_insert_pagination_limit
—
integer
The limit of sql insert queries per insert in @insertUsers method - $bulk_update_pagination_limit
—
integer
The limit of sql update queries per update in @updateUsers method - $deleted_warning_threshold
—
integer
The limit of users to delete before the job will log an INFO level message
Methods
protected
- markJobAsDone() — Complete the job so it can removed from the queue
- scheduleAdditionalJobs() — Schedule additional jobs
- scheduleNextExecution() — Queue up the next job to run.
public
- getLogger() — Get a logger