hyperswitch
hyperswitch copied to clipboard
feat(access_token): scheduler workflow implementation for access token
Type of Change
- [x] New feature
Description
This PR adds support for generating the access token by the scheduler. This will offload the task of generating the access token by a new payment and save us some time for a new payment.
Motivation and Context
Reduce access token creation time during payments.
How did you test it?
-
For testing purposes, the next schedule time is set to 60 seconds.
-
Create a payment using a connector which requires
access_tokenfor payment. -
The process tracker entry is created.

-
After one minute, new access token is created and stored in redis. The task is requeued and new schedule time is created.

Checklist
- [x] I formatted the code
cargo +nightly fmt --all - [x] I addressed lints thrown by
cargo clippy - [x] I reviewed submitted code