interface QueueStorageInterface

Job recuring interface

Methods

bool
setJobStatus(string|integer $id, int $status)

Update execution status

bool
updateExecutionStatus(JobInterface $job)

Update execution status

boolean
addJob(array $data)

Add job

bool
hasJob(string|integer $id)

Return true if job exists

array|null
getJob(string|integer $id)

Get job

string|false
getJobId(array $filter = [])

Find job and return job id

boolean
deleteJob(string|integer $id)

Delete job

bool
deleteJobs(array $filter = [])

Delete jobs

array|null
getJobs(array $filter = [])

Get jobs

array|null
getJobsDue()

Get all jobs due

array|null
getNext()

Get next Job

bool
saveJobConfig(string|int $id, array $config)

Save job config

Details

at line 24
bool setJobStatus(string|integer $id, int $status)

Update execution status

Parameters

string|integer $id
int $status

Return Value

bool

at line 32
bool updateExecutionStatus(JobInterface $job)

Update execution status

Parameters

JobInterface $job

Return Value

bool

at line 40
boolean addJob(array $data)

Add job

Parameters

array $data

Return Value

boolean

at line 48
bool hasJob(string|integer $id)

Return true if job exists

Parameters

string|integer $id

Return Value

bool

at line 56
array|null getJob(string|integer $id)

Get job

Parameters

string|integer $id

Return Value

array|null

at line 64
string|false getJobId(array $filter = [])

Find job and return job id

Parameters

array $filter

Return Value

string|false

at line 72
boolean deleteJob(string|integer $id)

Delete job

Parameters

string|integer $id

Return Value

boolean

at line 80
bool deleteJobs(array $filter = [])

Delete jobs

Parameters

array $filter

Return Value

bool

at line 88
array|null getJobs(array $filter = [])

Get jobs

Parameters

array $filter

Return Value

array|null

at line 95
array|null getJobsDue()

Get all jobs due

Return Value

array|null

at line 102
array|null getNext()

Get next Job

Return Value

array|null

at line 111
bool saveJobConfig(string|int $id, array $config)

Save job config

Parameters

string|int $id
array $config

Return Value

bool