- Openclerk\Jobs\JobQueuer
- \MissingAverageJobQueuer
class (none) \ MissingAverageJobQueuer
Find market data which is missing (#457), but only works for data that is still within the ticker
table (i.e. not in ticker_historical
).
TODO create more intelligent job queueing strategies (from JobQueuer)
Method Summary
Name | Description |
---|---|
findJobs(Connection $db, Logger $logger) | Get a list of all jobs that need to be queued, as an array of associative arrays with (job_type, arg_id, [user_id]). |
jobQueued(Connection $db, Logger $logger, $job) | The given job has been queued up, so we can mark it as successfully queued. |
Inherited Method Summary
Name | Description |
---|---|
getJobPrefix($job_type) | (from JobQueuer) |
queue(Connection $db, Logger $logger) | Find all jobs that need to be queued through #findJobs() and queue them up in the database. (from JobQueuer) |
public function findJobs(Connection $db, Logger $logger)
Get a list of all jobs that need to be queued, as an array of associative arrays with (job_type, arg_id, [user_id]).
This could use e.g. JobTypeFinder
- Overrides:
- findJobs(Connection $db, Logger $logger)
public function jobQueued(Connection $db, Logger $logger, $job)
The given job has been queued up, so we can mark it as successfully queued.