Skip to content

Commit

Permalink
Merge pull request #16 from crodrigues/master
Browse files Browse the repository at this point in the history
Retrieve and specify job entity table from module's config XML when configuring DJJob
  • Loading branch information
jkowens committed Apr 8, 2017
2 parents fa028eb + 2efc33d commit 97846e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/code/community/Jowens/JobQueue/Model/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ protected function setupDJJob() {

DJJob::configure(
$dsn,
array('mysql_user' => $config->username, 'mysql_pass' => $config->password)
);
array('mysql_user' => $config->username, 'mysql_pass' => $config->password),
Mage::getSingleton('core/resource')->getTableName('jobqueue/job')
);

if(!empty($config->initStatements)) {
DJJob::runQuery($config->initStatements);
Expand Down

0 comments on commit 97846e8

Please sign in to comment.