Skip to content

Commit

Permalink
Merge pull request #72 from lilt/3.x-increase-job-ttr
Browse files Browse the repository at this point in the history
Increase job ttr(s) to 30 minutes
  • Loading branch information
hadomskyi authored Jan 4, 2023
2 parents 8283c13 + 45430ac commit 44fcdc0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 3.2.1 - 2022-11-20
### Added
- Increase TTR for background jobs

## 3.2.0 - 2022-11-20
### Added
- Option to enable target entries on translations publish
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lilt/craft-lilt-plugin",
"description": "The Lilt plugin makes it easy for you to send content to Lilt for translation right from within Craft CMS.",
"type": "craft-plugin",
"version": "3.2.0",
"version": "3.2.1",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/FetchInstantJobTranslationsFromConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class FetchInstantJobTranslationsFromConnector extends BaseJob implements Retrya
{
public const DELAY_IN_SECONDS = 10;
public const PRIORITY = null;
public const TTR = 60 * 5; // 5 minutes
public const TTR = 60 * 30;

private const RETRY_COUNT = 3;

Expand Down
2 changes: 1 addition & 1 deletion src/modules/FetchJobStatusFromConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class FetchJobStatusFromConnector extends BaseJob implements RetryableJobInterfa
{
public const DELAY_IN_SECONDS = 10;
public const PRIORITY = null;
public const TTR = 60 * 5; // 5 minutes
public const TTR = 60 * 30;

private const RETRY_COUNT = 3;

Expand Down
2 changes: 1 addition & 1 deletion src/modules/FetchVerifiedJobTranslationsFromConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class FetchVerifiedJobTranslationsFromConnector extends BaseJob implements Retry
{
public const DELAY_IN_SECONDS = 60 * 5; // 5 minutes
public const PRIORITY = null;
public const TTR = 60 * 5; // 5 minutes
public const TTR = 60 * 30;

private const RETRY_COUNT = 3;

Expand Down
2 changes: 1 addition & 1 deletion src/modules/SendJobToConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SendJobToConnector extends BaseJob implements RetryableJobInterface
{
public const DELAY_IN_SECONDS = 10;
public const PRIORITY = null;
public const TTR = 60 * 5; // 5 minutes
public const TTR = 60 * 30;

private const RETRY_COUNT = 3;

Expand Down

0 comments on commit 44fcdc0

Please sign in to comment.