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

Which agent executes a job? #2642

Open
jmdyck opened this issue Jan 29, 2022 · 0 comments
Open

Which agent executes a job? #2642

jmdyck opened this issue Jan 29, 2022 · 0 comments
Labels

Comments

@jmdyck
Copy link
Collaborator

jmdyck commented Jan 29, 2022

Based on 9.7 Agents, it seems like the Agents exist to execute jobs:

An agent's executing thread executes a job on the agent's execution contexts ...
While an agent's executing thread executes jobs, the agent is the 'surrounding agent' for the code in those jobs.

So it's odd that 9.5 Jobs and Host Operations to Enqueue Jobs says absolutely nothing about agents. For instance, consider this sentence in the discussion about executing a job:

At some future point in time, when there is no running execution context and the execution context stack is empty, the implementation must: [invoke the job]

We know that "running execution context" and "execution context stack" are components/attributes of an agent, so there must be an agent involved in the above sentence, but it's not being mentioned. Is the implementation obliged to use the same agent that scheduled/enqueued the job? If so, that seems like an important restriction that's going unstated. If not, then is there any restriction on the agent used (other than the empty EC stack)? Could the implementation create a new agent to execute a job?

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

1 participant