Skip to content

Commit

Permalink
remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Abel Rodriguez committed Sep 21, 2023
1 parent dd39899 commit 7bbeccd
Showing 1 changed file with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,37 +83,23 @@ export const PipelineExecutions = ({
}, [statuses]);

useInterval(async () => {
console.log("start useInterval");

if (!pipeline) return;

if (isRequestInProgress) {
console.log("request is in progress");
return;
}
if (isRequestInProgress) return;

setIsRequestInProgress(true);
console.log("making a request...");

const resp = await gate.getExecutions(appName, {
pipelineName: pipeline.name,
pageSize: REQUEST_PAGE_SIZE,
startDate: dateRange.start,
endDate: dateRange.end,
});

setTimeout(() => {
console.log('setting timeout');
setIsRequestInProgress(false);
console.log("request completed");
}, 40000);

setExecutions(resp);
setFilteredExecutions(filterExecutions(resp));
setStatusCount(getStatusCount(resp));
setIsLoading(false);

console.log("end useInterval");
setIsRequestInProgress(false);
}, POLL_DELAY_MS);

const filterExecutions = (ex: IExecution[]) => {
Expand Down

0 comments on commit 7bbeccd

Please sign in to comment.