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

Integrate convertor with BullMQ #31

Open
aahnik opened this issue Mar 17, 2024 · 0 comments
Open

Integrate convertor with BullMQ #31

aahnik opened this issue Mar 17, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@aahnik
Copy link
Contributor

aahnik commented Mar 17, 2024

? the mod operation should track token expenditure based on some CPU resource usage
? the mod operation should update progress

Abstract implementation of running mod operations in background

  async applyMod(modID: string, applyModDto: ApplyModDto) {
    // load the mod to apply
    // load the dto of mod params
    // check if user has rights to access fileID
    // validate mod params
    // return error if incorrect/insufficient mod params
    // create background task to process this mod
    // return task id so that people can get the status of the mod
    console.log(applyModDto);
    return modID;
  }

  async checkModOpStatus(taskID: string) {
    // validate if the requester is the creator of this task
    // check the status of the task with given task id
    // return processing if still not complete
    // return the file id of result file, and no of tokens consumed when complete
    return taskID;
  }
@aahnik aahnik added the backend label Mar 17, 2024
@aahnik aahnik added this to the March milestone Mar 17, 2024
@aahnik aahnik changed the title Implement background tasks with nest js Integrate convertor with BullMQ May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants