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

Cloud Service Fix: Allow jobs to be re-run #214

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

haroldrubio
Copy link
Member

This PR allows jobs to be re-run by moving the spawning code to the worker process.

The function that converts the API request to a job config now accepts a job_id param and returns that config if it exists, otherwise it returns a new config. This is to avoid a new Redis entry with a new UUID from being made because of a retry, since a new entry would mean that the job ID returned from the original /expertise request would no longer be applicable.

This PR also sorts the results when GETing without a job ID, by cdate.

@haroldrubio haroldrubio self-assigned this Jan 22, 2025
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.

1 participant