Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev to staging #62

Merged
merged 18 commits into from
Dec 13, 2024
Merged

dev to staging #62

merged 18 commits into from
Dec 13, 2024

Conversation

jarvis8x7b
Copy link
Member

No description provided.

@jarvis8x7b jarvis8x7b changed the title Dev dev to staging Dec 10, 2024
* refactor: update metric api to cumulate task count after db purge

- increment the task result count everytime the api is called instead of fetch from TaskResult table
- use Redis INCR for atomic increments that work across all instances

* fix: fixed from PR feedback

- added some changes for PR feedback
- removed cache on GetTasksByWorkerSubscription to fix task list not properly updated

* fix: add more changes for PR, and edges cases

- add TasksByWorker cache back that was removed because of inconsistent UI
- reset the related cache after successful task sumit, or create
- refactor some code in cache.go
- add some changes from PR feedback

* chore: clean up substrate logs

* fix: bug fixed on changing expired time

- use UTC on current time when checking on expired task
- remove the check for expire task with no result, since schedular handling it already
@karootplx karootplx marked this pull request as ready for review December 13, 2024 03:46
Copy link
Collaborator

@karootplx karootplx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@karootplx karootplx merged commit f9c5450 into staging Dec 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants