Skip to content

Commit

Permalink
add defs for job queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McFadden committed Aug 27, 2024
1 parent 237a0c3 commit 6be7da0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@
$config['awsQueueAccessKey'] = $_ENV['AWS_QUEUEING_ACCESS_KEY_ID'] ?? null;
$config['awsQueueSecretKey'] = $_ENV['AWS_QUEUEING_SECRET_ACCESS_KEY'] ?? null;
$config['awsQueueJobDefinition'] = $_ENV['AWS_QUEUEING_JOB_DEFINITION'] ?? 'elevator';
$config['awsQueueJobQueue'] = $_ENV['AWS_QUEUEING_JOB_QUEUE'] ?? 'PrimaryJobQueue';

/* End of file config.php */
/* Location: ./application/config/config.php */
2 changes: 1 addition & 1 deletion application/models/filehandlers/Filehandlerbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public function queueBatchItem($asset, $sourceFile) {
]);
$params = [
'jobName' => 'transcode_' . $fileObjectId,
'jobQueue' => 'PrimaryJobQueue',
'jobQueue' => $this->config->item('awsQueueJobQueue'),
'jobDefinition' => $jobDefinition,
'timeout' => [
"attemptDurationSeconds" => ($size=="small")? 2400 : 28800,
Expand Down

0 comments on commit 6be7da0

Please sign in to comment.