Closed Michael-Dougherty closed 3 years ago
Hi @Michael-Dougherty
There is a (not ideal) way to restart the instance by clicking on "Save changes" in the instance config editor - even if you have not made any changes - which will restart the instance. This might be easier than doing it through the Seq API.
Let us know if you'd still like to look into a programmatic way of restarting the instance, happy to help.
Also, let us know if there's anything we can do to help diagnose why your Seq app instance is stopping.
Cheers, Larene
Thanks Larene,
I need to automate this, so doing what you mentioned of saving changes I made the following which updates nothing that appears to work.
SeqConnection connection = new SeqConnection(QA_SEQ_URL, QA_KEY); Seq.Api.Model.AppInstances.AppInstanceEntity AppEntity = await connection.AppInstances.FindAsync(AppInstanceID); m_logger.Info("Restarting App: " + AppEntity.Title); await connection.AppInstances.UpdateAsync(AppEntity);
Mike
From: Larene notifications@github.com Sent: Tuesday, November 24, 2020 7:59 PM To: datalust/seq-api seq-api@noreply.github.com Cc: Michael Dougherty Michael.Dougherty@bentley.com; Mention mention@noreply.github.com Subject: Re: [datalust/seq-api] Programmatically restarting an App instance (plug-in) (#90)
There is a (not ideal) way to restart the instance by clicking on "Save changes" in the instance config editor - even if you have not made any changes - which will restart the instance. This might be easier than doing it through the Seq API.
Let us know if you'd still like to look into a programmatic way of restarting the instance, happy to help.
Also, let us know if there's anything we can do to help diagnose why your Seq app instance stopping.
Cheers, Larene
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_datalust_seq-2Dapi_issues_90-23issuecomment-2D733395332&d=DwMCaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=Mh8Uf2sV_hG1WeVp4Fosb8yqaWJHspEsOhoqoLYZ5TY&m=NUhFKtUiFHv_fkOQEkMYR2gQ8-AFR9WEJsZ7CviPluM&s=x_H2gP3vLIR4DCVJKSlTixPjqONsC8qZr_OsSIYE_Z8&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ALXMTUSQ6VZ642KSSTDHPDTSRRJDNANCNFSM4UA76RFA&d=DwMCaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=Mh8Uf2sV_hG1WeVp4Fosb8yqaWJHspEsOhoqoLYZ5TY&m=NUhFKtUiFHv_fkOQEkMYR2gQ8-AFR9WEJsZ7CviPluM&s=kGJdR9iD4P_EgwskW3LhKiwgDGMqDpqvC20fj2Hl3Ng&e=.
Oh, of course! Glad that that's working, thanks for the update!
I have a SEQ app instance that occasionally stops working and until we get this resolved I need to automate restarting the instance. How can this be done using the REST api or SDK?
Thanks for any advise.