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

feat: persistent task worker queues #193

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

Desiki-high
Copy link
Collaborator

@Desiki-high Desiki-high commented Sep 16, 2023

Create a new boltdb for manager to persistent task worker queues in database.
Changes:

  • Init manager when creat LocalProvider.
  • Load task queues from boltdb when init manager.
  • Manager syncs task queues with boltdb when Create or Finish task.
    resolve Task status and worker persistent #5.

@Desiki-high Desiki-high force-pushed the feat/task-persistent branch 2 times, most recently from 8b46592 to 08179ee Compare September 16, 2023 09:27
@Desiki-high Desiki-high changed the title [WIP]feat: persistent task worker queues feat: persistent task worker queues Sep 16, 2023
pkg/task/manager.go Outdated Show resolved Hide resolved
pkg/task/manager.go Outdated Show resolved Hide resolved
pkg/task/manager.go Show resolved Hide resolved
@Desiki-high Desiki-high requested a review from imeoer September 18, 2023 03:44
@Desiki-high Desiki-high added the feat New feature or request label Sep 19, 2023
We create a new boltdb for manager to persistent task worker queues in boltdb.
Manager will load the task queue from the database and sync new tasks with database.

Signed-off-by: Yadong Ding <[email protected]>
Copy link
Collaborator

@imeoer imeoer left a comment

Choose a reason for hiding this comment

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

LGTM!

@imeoer imeoer merged commit 2df5622 into goharbor:main Sep 26, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task status and worker persistent
2 participants