Lucas Gonthier
07/07/2023, 7:16 PMkapa.ai
07/07/2023, 7:16 PMkapa.ai
07/07/2023, 7:17 PM/v1/jobs/{jobId} endpoint. While this method works, it might not be the most efficient for monitoring thousands of jobs as it involves making frequent API calls. csharp //Checks every 10 seconds the status of the job while(jobStatus == "running") { //Gets status of the job client = new RestClient("<https://api.airbyte.com/v1/jobs/>" + jobId);//We add the 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); } } As for the implementation of a callback feature, the extracts do not provide any information on whether this is planned by the Airbyte team. For more specific information or requests, it would be best to reach out to the Airbyte team directly through their official communication channels.Lucas Gonthier
07/07/2023, 7:40 PMkapa.ai
07/07/2023, 7:40 PMkapa.ai
07/07/2023, 7:40 PMLucas Gonthier
07/07/2023, 7:44 PMkapa.ai
07/07/2023, 7:50 PMkapa.ai
07/07/2023, 7:50 PM