sourcegraph/internal/codeintel/uploads
Noah S-C f6a912b6ee
codeintel: prioritize manual autoindexing jobs (#55745)
Prioritizes manually enqueued autoindexing jobs over background-scheduled jobs based on the enqueuer user ID (derived from the context's actor). This way, the users jobs will get indexed first, instead of being thrown to the back of the queue

## Test plan

Added unit tests to ensure dequeue order and that user ID is properly set from actor

<!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles 

Why does it matter? 

These test plans are there to demonstrate that are following industry standards which are important or critical for our customers. 
They might be read by customers or an auditor. There are meant be simple and easy to read. Simply explain what you did to ensure 
your changes are correct!

Here are a non exhaustive list of test plan examples to help you:

- Making changes on a given feature or component: 
  - "Covered by existing tests" or "CI" for the shortest possible plan if there is zero ambiguity
  - "Added new tests" 
  - "Manually tested" (if non trivial, share some output, logs, or screenshot)
- Updating docs: 
  - "previewed locally" 
  - share a screenshot if you want to be thorough
- Updating deps, that would typically fail immediately in CI if incorrect
  - "CI" 
  - "locally tested" 
-->
2023-09-11 06:48:34 +00:00
..
internal codeintel: prioritize manual autoindexing jobs (#55745) 2023-09-11 06:48:34 +00:00
shared codeintel: prioritize manual autoindexing jobs (#55745) 2023-09-11 06:48:34 +00:00
transport codeintel: consolidate enterprise & oss codeintel packages (#54431) 2023-07-05 14:58:41 +01:00
BUILD.bazel codeintel: consolidate enterprise & oss codeintel packages (#54431) 2023-07-05 14:58:41 +01:00
iface.go codeintel: consolidate enterprise & oss codeintel packages (#54431) 2023-07-05 14:58:41 +01:00
init.go codeintel: consolidate enterprise & oss codeintel packages (#54431) 2023-07-05 14:58:41 +01:00
mocks_test.go codeintel: consolidate enterprise & oss codeintel packages (#54431) 2023-07-05 14:58:41 +01:00
observability.go codeintel: consolidate enterprise & oss codeintel packages (#54431) 2023-07-05 14:58:41 +01:00
service.go codeintel: consolidate enterprise & oss codeintel packages (#54431) 2023-07-05 14:58:41 +01:00
upload_handler.go codeintel: consolidate enterprise & oss codeintel packages (#54431) 2023-07-05 14:58:41 +01:00