Skip to content

Commit

Permalink
Merge pull request #375 from hms-dbmi-cellenics/added-logs
Browse files Browse the repository at this point in the history
added state machine & context logs
  • Loading branch information
kafkasl authored Jun 21, 2022
2 parents b8c85f7 + 19a077e commit 53c1a5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api.v2/helpers/pipeline/pipelineConstruct/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const _ = require('lodash');
const AWSXRay = require('aws-xray-sdk');
const fetch = require('node-fetch');
const { v4: uuidv4 } = require('uuid');
const util = require('util');

const config = require('../../../../config');
const { QC_PROCESS_NAME, GEM2S_PROCESS_NAME } = require('../constants');
Expand Down Expand Up @@ -253,6 +254,8 @@ const createQCPipeline = async (experimentId, processingConfigUpdates, authJWT)

const stateMachineArn = await createNewStateMachine(context, stateMachine, QC_PROCESS_NAME);
logger.log(`State machine with ARN ${stateMachineArn} created, launching it...`);
logger.log('Context:', util.inspect(context, { showHidden: false, depth: null, colors: false }));
logger.log('State machine:', util.inspect(stateMachine, { showHidden: false, depth: null, colors: false }));

const execInput = {
samples: samplesOrder.map((sampleUuid, index) => ({ sampleUuid, index })),
Expand Down Expand Up @@ -302,6 +305,8 @@ const createGem2SPipeline = async (experimentId, taskParams) => {

const stateMachineArn = await createNewStateMachine(context, stateMachine, GEM2S_PROCESS_NAME);
logger.log(`State machine with ARN ${stateMachineArn} created, launching it...`);
logger.log('Context:', util.inspect(context, { showHidden: false, depth: null, colors: false }));
logger.log('State machine:', util.inspect(stateMachine, { showHidden: false, depth: null, colors: false }));

const executionArn = await executeStateMachine(stateMachineArn);
logger.log(`Execution with ARN ${executionArn} created.`);
Expand Down

0 comments on commit 53c1a5b

Please sign in to comment.