Question: For the first time when we run the sync cronjob (product/content) sync, it runs properly and creates media dump in the admin tab.

from next time when we run it, it just shows successful but actually, sync does not happen.

When I go back and clear the media dump from the admin tab, it starts working and again creats media dump.

So every time I am forced to manually clear the media dump for making this sync job to work.

please advise.

Answer: 
Although this doesn't apply to the OP, in cases where the linear gradient's color changes are strictly vertical (i.e. startPoint is .top and endPoint is .bottom), then as an alternative to Mojtaba's solution, you can add a second (and third) .background using the Colors at the top and bottom of your gradient.

So, 

```
.background(LinearGradient(gradient: Gradient(colors: [.red, .blue]), startPoint: .top, endPoint: .bottom), cornerRadius: 0)

```

Could become,

```
.background(LinearGradient(gradient: Gradient(colors: [.red, .blue]), startPoint: .top, endPoint: .bottom), cornerRadius: 0)
.background(Color(.red).edgesIgnoringSafeArea(.top))
.background(Color(.white).edgesIgnoringSafeArea(.bottom))

```

This will work in portrait mode, not sure about landscape though!
You should use `ZStack`. Also, note that the `LinearGradient` is a `View` itself and there is no need to embed it in `background` modifier. So:

```
var body: some View {
    ZStack {
        LinearGradient(gradient: Gradient(colors: [.red, .orange]), startPoint: .topTrailing, endPoint: .bottomLeading)
            .edgesIgnoringSafeArea(.all)

        ScrollView {
            VStack {
                ForEach((1...100), id:\.self ) { Text("\($0)").padding() }
            }
        }
    }
}

```