Skip to content

Commit

Permalink
Merge pull request #216 from katalon-studio/master
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
quidl authored Jun 13, 2024
2 parents 92bcec9 + 25eda46 commit 795c206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "katalon-agent",
"version": "v2.3.0",
"version": "v2.4.0",
"description": "",
"main": "cli.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/service/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const utils = require('../core/utils');
const { NODE_ENV } = process.env;

const defaultConfigFile = utils.getPath('agentconfig');
const requestInterval = NODE_ENV === 'debug' ? 5 * 1000 : 60 * 1000;
const requestInterval = NODE_ENV === 'debug' ? 5 * 1000 : 30 * 1000;
const pingInterval = NODE_ENV === 'debug' ? 30 * 1000 : 60 * 1000;
const checkProcessInterval = NODE_ENV === 'debug' ? 30 * 1000 : 60 * 5 * 1000;
const syncJobInterval = NODE_ENV === 'debug' ? 15 * 1000 : 30 * 1000;
Expand Down Expand Up @@ -218,7 +218,7 @@ async function executeJob(jobInfo, keepFiles) {
const jobStatus = JOB_STATUS.FAILED;
await uploadLog(jobInfo, logFilePath, apiKey);
logger.debug(`Error caught during job execution! Update job with status '${jobStatus}'`);
await updateJobStatus(jobId, jobStatus, apiKey);
await updateJobStatus(jobId, jobStatus, null, apiKey);
} finally {
jLogger.close();

Expand Down Expand Up @@ -302,9 +302,9 @@ class Agent {
!requestJobResponse.body.parameter ||
!requestJobResponse.body.testProject
) {
// There is no job to execute
return;
}

const jobBody = requestJobResponse.body;
const jobApiKey = requestJobResponse.body.parameter.environmentVariables
.find((item) => item.name === jobApiKeyEnv);
Expand Down

0 comments on commit 795c206

Please sign in to comment.