| Schedule of Segment Reporting Information, by Segment | The following tables set forth certain financial information with respect to the Company’s reportable segments (in thousands): 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| Three months ended June 30, 2021 | Infrastructure | Well Completion | Sand | Drilling | All Other | Eliminations | Total |  
| Revenue from external customers | $ | 17,220 |  | $ | 17,337 |  | $ | 6,886 |  | $ | 1,130 |  | $ | 4,867 |  | $ | — |  | $ | 47,440 |  |  
| Intersegment revenues | — |  | 36 |  | — |  | 17 |  | 682 |  | (735) |  | — |  |  
| Total revenue | 17,220 |  | 17,373 |  | 6,886 |  | 1,147 |  | 5,549 |  | (735) |  | 47,440 |  |  
| Cost of revenue, exclusive of depreciation, depletion, amortization and accretion | 19,881 |  | 16,396 |  | 7,400 |  | 1,568 |  | 5,130 |  | — |  | 50,375 |  |  
| Intersegment cost of revenues | 50 |  | 666 |  | — |  | — |  | 19 |  | (735) |  | — |  |  
| Total cost of revenue | 19,931 |  | 17,062 |  | 7,400 |  | 1,568 |  | 5,149 |  | (735) |  | 50,375 |  |  
| Selling, general and administrative | 7,383 |  | 1,893 |  | 991 |  | 395 |  | 1,321 |  | — |  | 11,983 |  |  
| Depreciation, depletion, amortization and accretion | 5,899 |  | 6,447 |  | 2,387 |  | 2,079 |  | 3,453 |  | — |  | 20,265 |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
| Operating loss | (15,993) |  | (8,029) |  | (3,892) |  | (2,895) |  | (4,374) |  | — |  | (35,183) |  |  
| Interest expense, net | 656 |  | 219 |  | 90 |  | 58 |  | 146 |  | — |  | 1,169 |  |  
| Other (income) expense, net | 15,904 |  | 1 |  | (53) |  | (127) |  | (727) |  | — |  | 14,998 |  |  
| Loss before income taxes | $ | (32,553) |  | $ | (8,249) |  | $ | (3,929) |  | $ | (2,826) |  | $ | (3,793) |  | $ | — |  | $ | (51,350) |  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| Three months ended June 30, 2020 | Infrastructure | Well Completion | Sand | Drilling | All Other | Eliminations | Total |  
| Revenue from external customers | $ | 30,249 |  | $ | 16,125 |  | $ | 6,237 |  | $ | 1,250 |  | $ | 6,248 |  | $ | — |  | $ | 60,109 |  |  
| Intersegment revenues | — |  | 419 |  | — |  | — |  | 584 |  | (1,003) |  | — |  |  
| Total revenue | 30,249 |  | 16,544 |  | 6,237 |  | 1,250 |  | 6,832 |  | (1,003) |  | 60,109 |  |  
| Cost of revenue, exclusive of depreciation, depletion, amortization and accretion | 25,217 |  | 8,375 |  | 6,394 |  | 2,012 |  | 6,755 |  | — |  | 48,753 |  |  
| Intersegment cost of revenues | 27 |  | 333 |  | — |  | 21 |  | 622 |  | (1,003) |  | — |  |  
| Total cost of revenue | 25,244 |  | 8,708 |  | 6,394 |  | 2,033 |  | 7,377 |  | (1,003) |  | 48,753 |  |  
| Selling, general and administrative | 7,830 |  | 1,456 |  | 1,378 |  | 1,331 |  | 1,731 |  | — |  | 13,726 |  |  
| Depreciation, depletion, amortization and accretion | 7,500 |  | 7,675 |  | 2,358 |  | 2,671 |  | 3,912 |  | — |  | 24,116 |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
| Operating loss | (10,325) |  | (1,295) |  | (3,893) |  | (4,785) |  | (6,188) |  | — |  | (26,486) |  |  
| Interest expense, net | 716 |  | 329 |  | 69 |  | 132 |  | 225 |  | — |  | 1,471 |  |  
| Other (income) expense, net | (8,004) |  | (1,179) |  | (2) |  | (298) |  | 213 |  | — |  | (9,270) |  |  
| Loss before income taxes | $ | (3,037) |  | $ | (445) |  | $ | (3,960) |  | $ | (4,619) |  | $ | (6,626) |  | $ | — |  | $ | (18,687) |  | 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| Six months ended June 30, 2021 | Infrastructure | Well Completion | Sand | Drilling | All Other | Eliminations | Total |  
| Revenue from external customers | $ | 46,476 |  | $ | 40,238 |  | $ | 15,592 |  | $ | 2,049 |  | $ | 9,889 |  | $ | — |  | $ | 114,244 |  |  
| Intersegment revenues | — |  | 90 |  | — |  | 31 |  | 1,322 |  | (1,443) |  | — |  |  
| Total revenue | 46,476 |  | 40,328 |  | 15,592 |  | 2,080 |  | 11,211 |  | (1,443) |  | 114,244 |  |  
| Cost of revenue, exclusive of depreciation, depletion, amortization and accretion | 46,340 |  | 25,399 |  | 13,262 |  | 3,173 |  | 10,281 |  | — |  | 98,455 |  |  
| Intersegment cost of revenues | 95 |  | 1,060 |  | — |  | — |  | 288 |  | (1,443) |  | — |  |  
| Total cost of revenue | 46,435 |  | 26,459 |  | 13,262 |  | 3,173 |  | 10,569 |  | (1,443) |  | 98,455 |  |  
| Selling, general and administrative | 13,635 |  | 12,505 |  | 3,040 |  | 818 |  | 2,833 |  | — |  | 32,831 |  |  
| Depreciation, depletion, amortization and accretion | 12,566 |  | 13,130 |  | 4,527 |  | 4,242 |  | 6,946 |  | — |  | 41,411 |  |  
|  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
| Operating loss | (26,160) |  | (11,766) |  | (5,237) |  | (6,153) |  | (9,137) |  | — |  | (58,453) |  |  
| Interest expense, net | 1,317 |  | 473 |  | 183 |  | 121 |  | 300 |  | — |  | 2,394 |  |  
| Other (income) expense, net | 6,593 |  | 440 |  | (847) |  | (135) |  | (485) |  | — |  | 5,566 |  |  
| Loss before income taxes | $ | (34,070) |  | $ | (12,679) |  | $ | (4,573) |  | $ | (6,139) |  | $ | (8,952) |  | $ | — |  | $ | (66,413) |  | 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| Six months ended June 30, 2020 | Infrastructure | Well Completion | Sand | Drilling | All Other | Eliminations | Total |  
| Revenue from external customers | $ | 55,724 |  | $ | 58,811 |  | $ | 16,391 |  | $ | 5,973 |  | $ | 20,593 |  | $ | — |  | $ | 157,492 |  |  
| Intersegment revenues | — |  | 1,052 |  | 95 |  | 5 |  | 1,360 |  | (2,512) |  | — |  |  
| Total revenue | 55,724 |  | 59,863 |  | 16,486 |  | 5,978 |  | 21,953 |  | (2,512) |  | 157,492 |  |  
| Cost of revenue, exclusive of depreciation, depletion, amortization and accretion | 51,897 |  | 33,943 |  | 17,691 |  | 7,637 |  | 19,491 |  | — |  | 130,659 |  |  
| Intersegment cost of revenues | 35 |  | 961 |  | — |  | 152 |  | 1,364 |  | (2,512) |  | — |  |  
| Total cost of revenue | 51,932 |  | 34,904 |  | 17,691 |  | 7,789 |  | 20,855 |  | (2,512) |  | 130,659 |  |  
| Selling, general and administrative | 11,774 |  | 3,627 |  | 2,680 |  | 2,394 |  | 4,022 |  | — |  | 24,497 |  |  
| Depreciation, depletion, amortization and accretion | 15,122 |  | 16,157 |  | 4,681 |  | 5,520 |  | 8,518 |  | — |  | 49,998 |  |  
| Impairment of goodwill | — |  | 53,406 |  | — |  | — |  | 1,567 |  | — |  | 54,973 |  |  
| Impairment of other long-lived assets | — |  | 4,203 |  | — |  | 326 |  | 8,368 |  | — |  | 12,897 |  |  
| Operating loss | (23,104) |  | (52,434) |  | (8,566) |  | (10,051) |  | (21,377) |  | — |  | (115,532) |  |  
| Interest expense, net | 1,467 |  | 605 |  | 147 |  | 389 |  | 501 |  | — |  | 3,109 |  |  
| Other (income) expense, net | (15,707) |  | (1,288) |  | (39) |  | (271) |  | 626 |  | — |  | (16,679) |  |  
| Loss before income taxes | $ | (8,864) |  | $ | (51,751) |  | $ | (8,674) |  | $ | (10,169) |  | $ | (22,504) |  | $ | — |  | $ | (101,962) |  | 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | Infrastructure | Well Completion | Sand | Drilling | All Other | Eliminations | Total |  
| As of June 30, 2021: |  |  |  |  |  |  |  |  
| Total assets | $ | 411,629 |  | $ | 103,312 |  | $ | 159,577 |  | $ | 30,737 |  | $ | 100,735 |  | $ | (40,051) |  | $ | 765,939 |  |  
| As of December 31, 2020: |  |  |  |  |  |  |  |  
| Total assets | $ | 436,604 |  | $ | 99,247 |  | $ | 172,927 |  | $ | 36,252 |  | $ | 135,194 |  | $ | (55,662) |  | $ | 824,562 |  |  |