Martin Lainez
10/31/2023, 6:43 PMkapa.ai
10/31/2023, 6:44 PMcsharp while(jobStatus == "running") { //Gets status of the job client = new RestClient("<https://api.airbyte.com/v1/jobs/>" + jobId); request = new RestRequest(); request.AddHeader("accept", "application/json"); request.AddHeader("content-type", "application/json"); request.AddHeader("Authorization", "Bearer {YourApiKey}"); dynamic statusResponse = client.ExecuteGet(request); //Deserialize response to get the status of the job apiResponse = JsonConvert.DeserializeObject(statusResponse.Content); jobStatus = apiResponse.status; //Waits 10 seconds.. Thread.Sleep(10000); //Prints info in console depending on the status if (jobStatus == "running") { Console.WriteLine("Job running..."); } else { Console.WriteLine("Job Finished..."); Console.WriteLine(" "); Console.WriteLine("Sync details:"); Console.WriteLine(" JobId:" + apiResponse.jobId); Console.WriteLine(" Status:" + jobStatus); Console.WriteLine(" Rows/Bytes Synced:" + apiResponse.rowsSynced + "/" + apiResponse.bytesSynced); Console.WriteLine(" Sync Start Time:" + apiResponse.startTime); Console.WriteLine(" Sync Last Updated:" + apiResponse.lastUpdatedAt); Console.WriteLine(" Sync Duration:" + apiResponse.duration); } } If you're still experiencing issues, it might be helpful to review the sync history in the Airbyte UI as described in the [documentation](https://docs.airbyte.com/cloud/managing-airbyte-cloud/review-sync-history). This can help you monitor the sync performance and identify any potential issues. If the problem persists, I recommend reaching out to Airbyte support for further assistance.