AI for Science JobQ
The main documentation is hosted at microsoft.github.io/ai4s-jobq.
Installation
To install, run
pip install ai4s-jobq
# or, if you log data to app insights and want to use a local dashboard:
pip install ai4s-jobq[track]
The ai4s.jobq package enables multiple users to push work items to an Azure Queue or an Azure Servicebus, while one or more workers pull and process tasks asynchronously. This approach is useful in scenarios where:
- Tasks are too small to justify the overhead of launching an Azure ML job for each one.
- Workloads need to be distributed across diverse environments (for example, Azure ML clusters in different regions).
- Throughput control is desired, scaling workers up or down as needed.
By decoupling job creation from execution, ai4s.jobq allows users to queue up tasks in advance and process them at a controlled rate based on resource availability.
Key Features
-
Native Azure Queues: Uses Azure Storage queues or Servicebus, no additional infrastructure.
-
Robustness: Jobs automatically reappear in the queue if a worker fails to complete them (for example, after pre-emptions or crashes).
-
Simple CLI Usage:
# Azure Storage Queue export QUEUE=my_storage_account_name/my_queue_name # ...or Azure Servicebus (pick one!) export QUEUE=sb://my_service_bus/my_queue_name ai4s-jobq $QUEUE push -c "echo hello" ai4s-jobq $QUEUE worker
(Requires Storage Queue Data Contributor role on the selected storage account for Azure Storage Queues or Azure Service Bus Data Owner role for Servicebus.)
-
Advanced Python API: Efficient handling of I/O-bound tasks, minimizing overhead in blob storage interactions and reducing the need for manual multi-threading/multi-processing.
-
Scalability & Efficiency: Enables large-scale distributed batch processing while being able to rely on cheap and available pre-emptible compute.
-
Observability: Workers can transmit telemetry which powers a Grafana/local dashboard to monitor queue progress.
AI for Science: Powering Large-Scale Research
ai4s.jobq is a critical tool in Microsoft Research -- AI for Science, enabling researchers to handle massive computational workloads with ease. It plays a key role in:
🔹 Generating large-scale synthetic datasets for AI-driven simulations. 🔹 Efficiently pre- and post-processing vast amounts of scientific data. 🔹 Scaling model evaluation by managing high-throughput inference workloads.
Why AI for Science relies on ai4s.jobq
🚀 Maximizing Compute Efficiency
By seamlessly leveraging preemptible compute across diverse environments, ai4s.jobq significantly boosts scalability while reducing costs—accelerating scientific discovery without wasted resources.
🛠 Focusing on Science, Not Infrastructure
Researchers can stay focused on their work instead of dealing with unreliable infrastructure. ai4s.jobq abstracts away system failures and optimizes task execution, freeing up valuable time for breakthroughs in AI and science.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.
Metadata
Release files for ai4s-jobq 3.13.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ai4s_jobq-3.13.1.tar.gz | 2.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai4s_jobq-3.13.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 2.1 MB
Release files / ai4s_jobq-3.13.1.tar.gz
| Download URL | ai4s_jobq-3.13.1.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8ef8788b349df479edda0408291d0f7fd1f9af20d3b23779b6c09841b694de9
|
|
BLAKE2b-256 checksum How to use checksums |
2842805c4b9b3ccc03a5fd7bc1febbd89b9d2b4c968f791f61b6f8f179878ec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.
Transparency logRelease files / ai4s_jobq-3.13.1-py2.py3-none-any.whl
| Download URL | ai4s_jobq-3.13.1-py2.py3-none-any.whl |
|---|---|
| Size | 160.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a3451679f25ef58db82feddac3badc63c46696082948ca3f04973cf743f472ed
|
|
BLAKE2b-256 checksum How to use checksums |
98ca72d0e0730388a9a89af361c64bd6ee51f91212919baa994c6e8e5401a611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.
Transparency log