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

Any user may begin the running of a task, not just the user that submitted it #774

Open
DiamondJoseph opened this issue Jan 10, 2025 · 1 comment

Comments

@DiamondJoseph
Copy link
Contributor

DiamondJoseph commented Jan 10, 2025

Possibly a desirable use case ("You queue up a bunch of scans you want to do, and I'll just churn through them while you get lunch") but also possibly undesirable (most(?) of the time, process will be submit task, run task, as exposed through the python cli).

When authentication information is passed as part of submitting a task, it may become necessary to check that the authentication information passed as part of running the task matches the user- but the submitting information may have had to have been refreshed, so cannot just check that it is the same.

Acceptance Criteria

  • Either user1 cannot run a task that has been submitted by user2
  • Or situations in which user1 may run a task submitted by user2 have been documented
  • Or configuration is available to switch between the two configurations
@callumforrester
Copy link
Contributor

The API is transaction-like, I would suggest that the only user who begins a transaction may submit. Blueapi is explicitly not a queueing mechanism and should not support the use case of queueing up a bunch of plans to be run later. The idea is that you should write your own service to do that.

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

No branches or pull requests

2 participants