testing the addition of an anti-cancer drug, adavosertib, to radiation therapy for patients with incurable esophageal and gastroesophageal junction cancers

Conditions: Clinical Stage III Esophageal Adenocarcinoma AJCC v8; Clinical Stage III Esophageal Squamous Cell Carcinoma AJCC v8; Clinical Stage III Gastroesophageal Junction Adenocarcinoma AJCC v8; Clinical Stage IV Esophageal Adenocarcinoma AJCC v8; Clinical Stage IV Esophageal Squamous Cell Carcinoma AJCC v8; Clinical Stage IV Gastroesophageal Junction Adenocarcinoma AJCC v8; Clinical Stage IVA Esophageal Adenocarcinoma AJCC v8; Clinical Stage IVA Esophageal Squamous Cell Carcinoma AJCC v8; Clinical Stage IVA Gastroesophageal Junction Adenocarcinoma AJCC v8; Clinical Stage IVB Esophageal Adenocarcinoma AJCC v8; Clinical Stage IVB Esophageal Squamous Cell Carcinoma AJCC v8; Clinical Stage IVB Gastroesophageal Junction Adenocarcinoma AJCC v8; Distal Esophagus Adenocarcinoma; Gastric Cardia Adenocarcinoma; Metastatic Esophageal Adenocarcinoma; Metastatic Esophageal Squamous Cell Carcinoma; Metastatic Gastroesophageal Junction Adenocarcinoma; Metastatic Malignant Neoplasm in the Brain; Metastatic Malignant Neoplasm in the Leptomeninges; Pathologic Stage III Esophageal Adenocarcinoma AJCC v8; Pathologic Stage III Esophageal Squamous Cell Carcinoma AJCC v8; Pathologic Stage III Gastroesophageal Junction Adenocarcinoma AJCC v8; Pathologic Stage IIIA Esophageal Adenocarcinoma AJCC v8; Pathologic Stage IIIA Esophageal Squamous Cell Carcinoma AJCC v8; Pathologic Stage IIIA Gastroesophageal Junction Adenocarcinoma AJCC v8; Pathologic Stage IIIB Esophageal Adenocarcinoma AJCC v8; Pathologic Stage IIIB Esophageal Squamous Cell Carcinoma AJCC v8; Pathologic Stage IIIB Gastroesophageal Junction Adenocarcinoma AJCC v8; Pathologic Stage IV Esophageal Adenocarcinoma AJCC v8; Pathologic Stage IV Esophageal Squamous Cell Carcinoma AJCC v8; Pathologic Stage IV Gastroesophageal Junction Adenocarcinoma AJCC v8; Pathologic Stage IVA Esophageal Adenocarcinoma AJCC v8; Pathologic Stage IVA Esophageal Squamous Cell Carcinoma AJCC v8; Pathologic Stage IVA Gastroesophageal Junction Adenocarcinoma AJCC v8; Pathologic Stage IVB Esophageal Adenocarcinoma AJCC v8; Pathologic Stage IVB Esophageal Squamous Cell Carcinoma AJCC v8; Pathologic Stage IVB Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage III Esophageal Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage III Esophageal Squamous Cell Carcinoma AJCC v8; Postneoadjuvant Therapy Stage III Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IIIA Esophageal Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IIIA Esophageal Squamous Cell Carcinoma AJCC v8; Postneoadjuvant Therapy Stage IIIA Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IIIB Esophageal Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IIIB Esophageal Squamous Cell Carcinoma AJCC v8; Postneoadjuvant Therapy Stage IIIB Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IV Esophageal Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IV Esophageal Squamous Cell Carcinoma AJCC v8; Postneoadjuvant Therapy Stage IV Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IVA Esophageal Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IVA Esophageal Squamous Cell Carcinoma AJCC v8; Postneoadjuvant Therapy Stage IVA Gastroesophageal Junction Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IVB Esophageal Adenocarcinoma AJCC v8; Postneoadjuvant Therapy Stage IVB Esophageal Squamous Cell Carcinoma AJCC v8; Postneoadjuvant Therapy Stage IVB Gastroesophageal Junction Adenocarcinoma AJCC v8; Unresectable Esophageal Adenocarcinoma; Unresectable Esophageal Carcinoma; Unresectable Esophageal Squamous Cell Carcinoma; Unresectable Gastroesophageal Junction Adenocarcinoma

Summary: this phase i trial investigates the side effects and best dose of adavosertib and how well it works when given in combination with radiation therapy in treating patients with esophageal or gastroesophageal junction cancer for which no treatment is currently available (incurable). adavosertib may stop the growth of tumor cells by blocking some of the enzymes needed for cell growth. radiation therapy uses high energy x-rays to kill tumor cells and shrink tumors. giving adavosertib together with radiation therapy kill more tumor cells than radiation therapy alone in treating patients with esophageal and gastroesophageal junction cancer.

primary objective: i. to identify the maximally tolerated dose of adavosertib (azd1775) to be used in combination with radiation therapy for patients with esophageal/gastroesophageal junction (gej) cancer that is metastatic or inoperable and not eligible for definitive chemoradiation. secondary objectives: i. to observe and record anti-tumor activity. ii. to evaluate the efficacy of azd1775 when administered in combination with radiation therapy by assessing changes in ogilvie dysphagia score following treatment, time to second intervention for dysphagia, and overall survival. iii. to identify biomarkers that are predictive for response to experimental therapy. outline: this is a dose escalation study of adavosertib. patients undergo radiation therapy once daily (qd) 5 days per week for 3 weeks in the absence of disease progression or unacceptable toxicity. patients also receive adavosertib orally (po) qd for 2-5 days (depending on dose level) during weeks 1 and 3 of radiation therapy in the absence of disease progression or unacceptable toxicity. after completion of study treatment, patients are followed up at 3 weeks, every 3 months for 2 years, then every 6 months for 3 years.

Eligibility criteria:
inclusion criteria: * patients must have histologically confirmed esophageal cancer (either squamous cell or adenocarcinoma), including siewert gastroesophageal junction adenocarcinomas types 1 and 2, that is inoperable and not eligible for definitive chemoradiation after multidisciplinary review or have pathologically confirmed or imaging consistent with metastatic disease * age \>= 18 years. because no dosing or adverse event data are currently available on the use of azd1775 in combination with radiation therapy in patients \< 18 years of age, children are excluded from this study * eastern cooperative oncology group (ecog) performance status 0-1 (karnofsky \>= 70%) * leukocytes \>= 3,000/mcl * absolute neutrophil count \>= 1,500/mcl * hemoglobin \>= 9 g/dl * platelets \>= 100,000/mcl * total bilirubin =\< 1.5 x institutional upper limit of normal (uln) * aspartate aminotransferase (ast) (serum glutamic oxaloacetic transaminase \[sgot\])/alanine aminotransferase (alt) (serum glutamate pyruvate transaminase \[sgpt\]) =\< 3 x institutional uln * creatinine =\< 1.5 x institutional uln or * glomerular filtration rate (gfr) \>= 60 ml /min/1.73 m\^2 unless data exists supporting safe use at lower kidney function values, no lower than 30 ml/min/1.73 m\^2 * for patients with evidence of chronic hepatitis b virus (hbv) infection, the hbv viral load must be undetectable on suppressive therapy, if indicated * patients with a history of hepatitis c virus (hcv) infection must have been treated and cured. for patients with hcv infection who are currently on treatment, they are eligible if they have an undetectable hcv viral load * patients with treated brain metastases are eligible if follow-up brain imaging after central nervous system (cns)-directed therapy shows no evidence of progression * patients with new or progressive brain metastases (active brain metastases) or leptomeningeal disease are eligible if the treating physician determines that immediate cns specific treatment is not required and is unlikely to be required during the first cycle of therapy * patients with a prior or concurrent malignancy whose natural history or treatment does not have the potential to interfere with the safety or efficacy assessment of the investigational regimen are eligible for this trial * patients with known history or current symptoms of cardiac disease, or history of treatment with cardiotoxic agents, should have a clinical risk assessment of cardiac function using the new york heart association functional classification. to be eligible for this trial, patients should be class 2b or better * patients able to swallow whole capsules. patients with esophageal stents and/or feeding tubes are eligible but must be able to swallow whole capsules. capsules may not be opened or put down a feeding tube * patients with a life expectancy \> 3 months * patients must have an electrocardiogram (ecg) within 8 weeks prior to treatment assignment and must have no clinically important abnormalities in rhythm, conduction or morphology of resting ecg * resting corrected qtc interval using the fridericia formula (qtcf) \> 480 msec (as calculated per institutional standards) obtained from an ecg (note: if one ecg demonstrates a qtcf \> 480 msec, then a mean qtcf of =\< 480 msec obtained from 3 ecgs 2-5 minutes apart, is required at study entry) * patients with congenital long qt syndrome are excluded * the effects of azd1775 on the developing human fetus are unknown. for this reason and because other therapeutic agents used in this trial are known to be teratogenic, women of child-bearing potential must agree to use adequate contraception (hormonal or barrier method of birth control; abstinence) for 2 weeks prior to study drug exposure, the duration of study participation, and for 1 month after completing treatment. women of child-bearing potential must have a negative serum or urine pregnancy test (minimum sensitivity 25 iu/l or equivalent units of hcg) within 1 week of registration. should a woman become pregnant or suspect she is pregnant while she or her partner is participating in this study, she should inform her treating physician immediately. men treated or enrolled on this protocol must also agree to use adequate contraception for the duration of study participation and for 3 months after completion of treatment. male patients should not donate sperm during exposure to study drug and for 3 months after study drug discontinuation * ability to understand and the willingness to sign a written informed consent document. participants with impaired decision-making capacity (idmc) will also be eligible exclusion criteria: * patients who have had chemotherapy or radiotherapy within 3 weeks (6 weeks for nitrosoureas or mitomycin c) prior to starting study therapy * patients who have not recovered from adverse events due to prior anti-cancer therapy (i.e., have residual toxicities \> grade 1) with the exception of alopecia * patients who are receiving any other investigational agents * history of allergic reactions attributed to compounds of similar chemical or biologic composition to azd1775 * patients receiving any medications or substances that are strong inhibitors or inducers of cyp3a4 are ineligible. because the lists of these agents are constantly changing, it is important to regularly consult a frequently-updated medical reference. as part of the enrollment/informed consent procedures, the patient will be counseled on the risk of interactions with other agents, and what to do if new medications need to be prescribed or if the patient is considering a new over-the-counter medicine or herbal product * patients with uncontrolled intercurrent illness * patients with psychiatric illness/social situations that would limit compliance with study requirements * pregnant women are excluded from this study because azd1775 is a wee1 inhibiting agent with the potential for teratogenic or abortifacient effects. because there is an unknown but potential risk for adverse events in nursing infants secondary to treatment of the mother with azd1775, breastfeeding should be discontinued if the mother is treated with azd1775. these potential risks may also apply to other agents used in this study * prior thoracic or abdominal radiation therapy for cancer that would result in significant overlap of radiation therapy fields at the discretion of the investigator * patients with congenital long qt syndrome or with a history of torsades de pointes unless all risk factors contributed to torsades have been corrected. azd1775 has not been studied in patients with ventricular arrhythmias or recent myocardial infarction * eligibility of subjects receiving any medications or substances with the potential to affect the activity or pharmacokinetics of azd1775 will be determined following review by the principal investigator