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

Use JobContext for progress callbacks #1282

Merged
merged 3 commits into from
Jul 22, 2024
Merged

Conversation

twizmwazin
Copy link
Member

@twizmwazin twizmwazin commented Jul 18, 2024

As a precondition for parallel jobs, I thought it would be useful to introduce a new JobContext type. The JobContext is intended to be how a job can communicate back with its host JobManager. Right now that is limited exclusively to the progress callback, but I intend for this to be how a job views if it is cancelled, set if its progress is indeterminate, etc. It will also be useful in a distant future when jobs are run in a more confined environment from angr management, such as a subprocess.

@twizmwazin twizmwazin merged commit 7854eb8 into master Jul 22, 2024
25 checks passed
@twizmwazin twizmwazin deleted the refactor/job-context branch July 22, 2024 16:52
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.

None yet

1 participant