spack / spackbot

Spack maintainer bot 🤖
https://spack.github.io/spackbot/
Other
8 stars 12 forks source link

workers: Do not attempt to re-auth installation #62

Closed scottwittenburg closed 2 years ago

scottwittenburg commented 2 years ago

According to the ghapi docs, the token should be good for one hour from the time you request. So instead of having the worker attempt to re-authenticate the installation as soon as it starts (which so far has been pretty much immediately), let's just use the token we already put in the job metadata to communicate with the api.

If we ever see that the worker is taking more than an hour to get kicked off or do it'w work, we can revisit this.

scottwittenburg commented 2 years ago

Tested in the dev environment, see here.