MCPcopy Create free account
hub / github.com/dataform-co/dataform / formatExecutionSuffix

Function formatExecutionSuffix

cli/util.ts:28–37  ·  view source on GitHub ↗
(jobIds: string[], bytesBilled: string[])

Source from the content-addressed store, hash-verified

26}
27
28export function formatExecutionSuffix(jobIds: string[], bytesBilled: string[]): string {
29 const jobMetadataParts: string[] = [];
30 if (jobIds.length > 0) {
31 jobMetadataParts.push(`\n \t jobId: ${jobIds.join(", ")}`);
32 }
33 if (bytesBilled.length > 0) {
34 jobMetadataParts.push(`\n \t Bytes billed: ${bytesBilled.join(", ")}`);
35 }
36 return jobMetadataParts.length > 0 ? ` ${jobMetadataParts}` : "";
37}
38
39export function formatBytesInHumanReadableFormat(bytes: number): string {
40 // we do not want to raise an error when bytes < 0

Callers 2

printExecutedActionFunction · 0.90
util_test.tsFile · 0.90

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected