You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
alt="Example of sync timeout exceeded warning in**Warnings/Errors** panel"
179
+
caption="Example of sync timeout exceeded warning in**Warnings/Errors** panel"
180
+
max-width="60%"
181
+
%}
171
182
172
183
**Corrective Action**:
173
-
* Click**View Details** to take you directly to the Sync Result tab.
174
-
Here you can see details on the sync job that was started, and info on the Hooks if any. Failed hooks are dsiplayed at the top.
175
-
* To see more details such as the message and sync duration, switch to**Sync Info**.
176
-
* To stop the sync operation, click**Terminate**.
177
-
* Drill down into the application to investigate the issue and make changes.
184
+
1. Click**View Details** to take you directly to the Sync Result tab.
185
+
Here you can see details on the sync job that was started, and info on the Hooks if any. Failed hooks are displayed at the top.
186
+
1. To see more details such as the message and sync duration, switch to**Sync Info**.
187
+
1. Drill down into the application to investigate the issue and make changes.
178
188
179
189
##Monitor Argo CD application status in application header
180
190
When you select an application from the Applications tab in the GitOps Apps dashboard, the application header, at the top of the page, displays critical information on the application, including health and sync statuses.
Copy file name to clipboardExpand all lines: _docs/deployments/gitops/manage-application.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,9 @@ There are two aspects to managing and optimizing Argo CD applications in Codefre
35
35
*[Synchronize Argo CD applications](#manually-synchronize-an-argo-cd-application)
36
36
Sync applications on-demand by manually applying sync options or by manually selecting the resources to sync.
37
37
38
+
*[Configure sync-timeout for Argo CD applications](#configure-sync-timeout-for-argo-cd-applications)
39
+
Configure the sync-timeout through an annotation to be notified of long sync operations.
40
+
38
41
*[Terminate sync for Argo CD applications](#terminate-on-going-sync-for-argo-cd-applications)
39
42
With a single-click, terminate on-going sync processes when needed.
40
43
@@ -215,10 +218,6 @@ You can also synchronize _application resources_ with sync statuses such as `Ser
215
218
***Out of sync**: Sync_only_ resources that are`Out of sync`.
216
219
217
220
218
-
219
-
220
-
221
-
222
221
###Revision settings for application sync
223
222
Revision settings determine the behavior for the branch you select.
224
223
@@ -302,9 +301,31 @@ For example, if you made changes to `api` resources or `audit` resources, type `
302
301
%}
303
302
304
303
304
+
##Configure sync-timeout for Argo CD applications
305
+
Add an annotation with the timeout threshold for the application to get notified when an ongoing sync exceeds the defined timeout.
306
+
Codefresh uses Argo CD's default duration of 30 minutes which you can customize as needed.
307
+
308
+
Instead of waiting indefinitely for syncs to complete and then navigating through the GitOps Apps dashboard, get timely warnings from Codefresh.
305
309
310
+
* Add the following annotation to the application's YAML with the timeout you need:
311
+
```yaml
312
+
annotation:
313
+
codefresh.io/app-sync-warning-threshold:"35"
314
+
```
315
+
Codefresh displays a warning in the **Warnings/Errors** button at the top right of the Applications tab in the GitOps Apps dashboard, when the sync duration exceeds the timeout specified.
alt="Sync duration exceeded warning for application"
323
+
caption="Sync duration exceeded warning for application"
324
+
max-width="60%"
325
+
%}
306
326
307
327
328
+
You can view more [details on the sync]({{site.baseurl}}/docs/deployments/gitops/applications-dashboard/#warning-long-sync) or [terminate](#terminate-on-going-sync-for-argo-cd-applications) it.
308
329
309
330
## Terminate on-going sync for Argo CD applications
310
331
Manually terminate an on-going synchronization process for the application. You may need to terminate an on-going sync that remains indefinitely as Syncing, or because you have detected problems in the current deployment