Skip to content

Auto Restart (Windows) CMD Batch? #1536

Description

Describe the feature

Wondering if you know how to code into the CMD window process to auto restart if a crash is detected. I cannot keep restarting manually once a day its getting too hectic.

[1]   errors: {
[1]     'violations.cky62eiek4674aotmih7f36yc.fine': { message: 'fine_invalidDataReceived', data: [Object] }
[1]   }
[1] }
[1] uncaughtException captured: BAD_REQUEST(400): badRequest
[1] yarn workspace @snailycad/api generate && yarn workspace @snailycad/api start exited with code 1
[0] yarn workspace @snailycad/client start exited with code 1
^CTerminate batch job (Y/N)? Y

C:\nginx\html\snaily-cadv4>yarn run concurrently "yarn workspace @snailycad/client start" "yarn workspace @snailycad/api generate && yarn workspace @snailycad/api start"

For example if the script has detected:

[1] yarn workspace @snailycad/api generate && yarn workspace @snailycad/api start exited with code 1
[0] yarn workspace @snailycad/client start exited with code 1

then it will automatically attempt to run:

yarn run concurrently "yarn workspace @snailycad/client start" "yarn workspace @snailycad/api generate && yarn workspace @snailycad/api start"

I'm not sure how to implement this myself.

Additional Context

Daily crashing is becoming annoying to deal with and my CAD is down for hours sometimes before someone tells me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions