Skip to content

Commit

Permalink
Merge pull request #215 from katalon-studio/fixbug
Browse files Browse the repository at this point in the history
Fixbug
  • Loading branch information
quidl authored Jun 13, 2024
2 parents 5926cd2 + e724325 commit 25eda46
Showing 1 changed file with 3 additions and 3 deletions.
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 25eda46

Please sign in to comment.