File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -1844,12 +1844,23 @@ impl DeploymentStore {
1844
1844
}
1845
1845
1846
1846
pub ( crate ) async fn set_manifest_raw_yaml (
1847
- & self ,
1847
+ self : Arc < Self > ,
1848
1848
site : Arc < Site > ,
1849
1849
raw_yaml : String ,
1850
1850
) -> Result < ( ) , StoreError > {
1851
- self . with_conn ( move |conn, _| {
1852
- deployment:: set_manifest_raw_yaml ( conn, & site, & raw_yaml) . map_err ( Into :: into)
1851
+ let logger = self . logger . cheap_clone ( ) ;
1852
+ retry:: forever_async ( & logger, "set_manifest_raw_yaml" , move || {
1853
+ let site = site. cheap_clone ( ) ;
1854
+ let raw_yaml = raw_yaml. clone ( ) ;
1855
+ let store = self . cheap_clone ( ) ;
1856
+ async move {
1857
+ store
1858
+ . with_conn ( move |conn, _| {
1859
+ deployment:: set_manifest_raw_yaml ( conn, & site, & raw_yaml)
1860
+ . map_err ( Into :: into)
1861
+ } )
1862
+ . await
1863
+ }
1853
1864
} )
1854
1865
. await
1855
1866
}
Original file line number Diff line number Diff line change @@ -1615,7 +1615,10 @@ impl SubgraphStoreTrait for SubgraphStore {
1615
1615
raw_yaml : String ,
1616
1616
) -> Result < ( ) , StoreError > {
1617
1617
let ( store, site) = self . store ( hash) ?;
1618
- store. set_manifest_raw_yaml ( site, raw_yaml) . await
1618
+ store
1619
+ . cheap_clone ( )
1620
+ . set_manifest_raw_yaml ( site, raw_yaml)
1621
+ . await
1619
1622
}
1620
1623
1621
1624
fn instrument ( & self , deployment : & DeploymentLocator ) -> Result < bool , StoreError > {
You can’t perform that action at this time.
0 commit comments