flux-batch 0.0.12__tar.gz → 0.0.13__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. {flux_batch-0.0.12/flux_batch.egg-info → flux_batch-0.0.13}/PKG-INFO +3 -1
  2. {flux_batch-0.0.12 → flux_batch-0.0.13}/README.md +2 -0
  3. flux_batch-0.0.13/flux_batch/service/scribe/__main__.py +127 -0
  4. flux_batch-0.0.13/flux_batch/service/scribe/database.py +166 -0
  5. flux_batch-0.0.13/flux_batch/service/scribe/models.py +107 -0
  6. flux_batch-0.0.13/flux_batch/service/usernetes/__init__.py +2 -0
  7. flux_batch-0.0.13/flux_batch/service/usernetes/template.py +53 -0
  8. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/version.py +1 -1
  9. {flux_batch-0.0.12 → flux_batch-0.0.13/flux_batch.egg-info}/PKG-INFO +3 -1
  10. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch.egg-info/SOURCES.txt +5 -0
  11. {flux_batch-0.0.12 → flux_batch-0.0.13}/LICENSE +0 -0
  12. {flux_batch-0.0.12 → flux_batch-0.0.13}/MANIFEST.in +0 -0
  13. {flux_batch-0.0.12 → flux_batch-0.0.13}/NOTICE +0 -0
  14. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/__init__.py +0 -0
  15. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/jobspec.py +0 -0
  16. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/logger/__init__.py +0 -0
  17. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/logger/generate.py +0 -0
  18. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/logger/logger.py +0 -0
  19. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/models.py +0 -0
  20. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/script/__init__.py +0 -0
  21. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/script/save_logs.sh +0 -0
  22. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/service/__init__.py +0 -0
  23. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/service/scribe/__init__.py +0 -0
  24. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/service/scribe/template.py +0 -0
  25. {flux_batch-0.0.12/flux_batch/service/scribe → flux_batch-0.0.13/flux_batch/service/usernetes}/__main__.py +0 -0
  26. {flux_batch-0.0.12/flux_batch/service/scribe → flux_batch-0.0.13/flux_batch/service/usernetes}/database.py +0 -0
  27. {flux_batch-0.0.12/flux_batch/service/scribe → flux_batch-0.0.13/flux_batch/service/usernetes}/models.py +0 -0
  28. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/submit.py +0 -0
  29. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/utils/__init__.py +0 -0
  30. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/utils/fileio.py +0 -0
  31. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/utils/text.py +0 -0
  32. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch/utils/timer.py +0 -0
  33. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch.egg-info/dependency_links.txt +0 -0
  34. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch.egg-info/entry_points.txt +0 -0
  35. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch.egg-info/not-zip-safe +0 -0
  36. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch.egg-info/requires.txt +0 -0
  37. {flux_batch-0.0.12 → flux_batch-0.0.13}/flux_batch.egg-info/top_level.txt +0 -0
  38. {flux_batch-0.0.12 → flux_batch-0.0.13}/pyproject.toml +0 -0
  39. {flux_batch-0.0.12 → flux_batch-0.0.13}/setup.cfg +0 -0
  40. {flux_batch-0.0.12 → flux_batch-0.0.13}/setup.py +0 -0
  41. {flux_batch-0.0.12 → flux_batch-0.0.13}/tests/test_flux_batch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: flux-batch
3
- Version: 0.0.12
3
+ Version: 0.0.13
4
4
  Summary: Python SDK for flux batch jobs and services
5
5
  Home-page: https://github.com/converged-computing/flux-batch
6
6
  Author: Vanessa Sochat
@@ -47,6 +47,8 @@ Requires-Dist: rich; extra == "scribe"
47
47
  - [fractale-mcp](https://github.com/compspec/fractale-mcp): (fractale) MCP orchestration (agents, databases, ui interfaces).
48
48
  - [hpc-mcp](https://github.com/converged-computing/hpc-mcp): HPC tools for a larger set of HPC and converged computing use cases.
49
49
 
50
+ If you are looking for `flux batch` please see the documentation [here](https://flux-framework.readthedocs.io/projects/flux-core/en/latest/man1/flux-batch.html). This library supports Flux Framework and is experimental.
51
+
50
52
  ## Services
51
53
 
52
54
  - **flux-scribe**: Write job events to a local sqlite database via the JournalConsumer (not added yet, written and needs testing)
@@ -13,6 +13,8 @@
13
13
  - [fractale-mcp](https://github.com/compspec/fractale-mcp): (fractale) MCP orchestration (agents, databases, ui interfaces).
14
14
  - [hpc-mcp](https://github.com/converged-computing/hpc-mcp): HPC tools for a larger set of HPC and converged computing use cases.
15
15
 
16
+ If you are looking for `flux batch` please see the documentation [here](https://flux-framework.readthedocs.io/projects/flux-core/en/latest/man1/flux-batch.html). This library supports Flux Framework and is experimental.
17
+
16
18
  ## Services
17
19
 
18
20
  - **flux-scribe**: Write job events to a local sqlite database via the JournalConsumer (not added yet, written and needs testing)
@@ -0,0 +1,127 @@
1
+ #!/usr/bin/env python3
2
+ import errno
3
+ import logging
4
+ import os
5
+ import sys
6
+ import time
7
+
8
+ import flux
9
+ import flux.job
10
+
11
+ # Not necessary, but it makes it pretty
12
+ from rich import print
13
+
14
+ # Use the synchronous version of the backend to avoid asyncio-in-thread conflicts
15
+ from flux_batch.service.scribe.database import SQLAlchemyBackend
16
+
17
+ # Setup logging to stderr (to avoid polluting stdout if run manually)
18
+ logging.basicConfig(
19
+ level=logging.INFO, format="%(asctime)s %(levelname)s: %(message)s", stream=sys.stderr
20
+ )
21
+ logger = logging.getLogger("flux-scribe")
22
+
23
+
24
+ class JournalScribe:
25
+ def __init__(self, db_url: str):
26
+ """
27
+ Initializes the Scribe with a synchronous DB backend and a Flux Journal Consumer.
28
+ """
29
+ # Get settings from environment
30
+ self.init_settings()
31
+
32
+ # Setup Database
33
+ logger.info(f"Connecting to Database: {db_url}")
34
+ self.db = SQLAlchemyBackend(db_url, self.settings["use_ssl"])
35
+ self.db.initialize()
36
+
37
+ try:
38
+ self.handle = flux.Flux()
39
+ logger.info("Connected to Flux instance.")
40
+ except Exception as e:
41
+ logger.critical(f"Failed to connect to Flux: {e}")
42
+ sys.exit(1)
43
+
44
+ logger.info(f"🍳 Handle: {self.handle.attr_get('local-uri')}")
45
+
46
+ # Initialize Journal Consumer
47
+ # This consumes the global event log for the entire instance
48
+ self.consumer = flux.job.JournalConsumer(self.handle)
49
+ self.running = True
50
+
51
+ def init_settings(self):
52
+ """
53
+ Initialize settings.
54
+ """
55
+ self.settings = {
56
+ "use_ssl": os.environ.get("FLUX_SCRIBE_SSL") not in [None, "no", "false", "off"],
57
+ "uid": os.environ.get("FLUX_SCRIBE_UID"),
58
+ }
59
+
60
+ def _normalize_event(self, event) -> dict:
61
+ """
62
+ Converts a Flux event object into the dictionary format expected by record_event.
63
+ Matches the logic provided in your EventsEngine reference.
64
+ """
65
+ # Convert the SWIG/CFFI event object to a dictionary
66
+ payload = dict(event)
67
+
68
+ return {
69
+ "id": str(getattr(event, "jobid", "unknown")),
70
+ "type": getattr(event, "name", "unknown"),
71
+ "timestamp": getattr(event, "timestamp", time.time()),
72
+ "payload": payload,
73
+ "R": getattr(event, "R", None),
74
+ "jobspec": getattr(event, "jobspec", None),
75
+ }
76
+
77
+ def run(self):
78
+ """
79
+ Main execution loop. Polls the journal and writes to the DB.
80
+ """
81
+ try:
82
+ logger.info("🚀 Flux Scribe (Journal Consumer) started.")
83
+ self.consumer.start()
84
+
85
+ while self.running:
86
+ try:
87
+ # Non-blocking poll (100ms timeout)
88
+ # This allows the loop to check for shutdown signals regularly
89
+ event = self.consumer.poll(timeout=0.1)
90
+
91
+ if event:
92
+ print(event)
93
+ # We only care about events associated with a job
94
+ if hasattr(event, "jobid"):
95
+ clean_event = self._normalize_event(event)
96
+ self.db.record_event("local", self.settings['uid'], clean_event)
97
+ else:
98
+ # If no event, yield a tiny bit of CPU
99
+ time.sleep(0.01)
100
+
101
+ except EnvironmentError as e:
102
+ # Ignore timeouts (no data)
103
+ if e.errno == errno.ETIMEDOUT:
104
+ continue
105
+ logger.error(f"Flux connection error: {e}")
106
+ time.sleep(1)
107
+
108
+ except Exception as e:
109
+ logger.error(f"Unexpected error in event loop: {e}")
110
+ time.sleep(1)
111
+
112
+ except Exception as e:
113
+ logger.critical(f"EventsEngine crashed: {e}")
114
+ finally:
115
+ self.db.close()
116
+ logger.info("EventsEngine thread exiting.")
117
+
118
+
119
+ def main():
120
+ # Retrieve DB path from environment or use a default
121
+ db_path = os.environ.get("FLUX_SCRIBE_DATABASE", "sqlite:///server_state.db")
122
+ scribe = JournalScribe(db_path)
123
+ scribe.run()
124
+
125
+
126
+ if __name__ == "__main__":
127
+ main()
@@ -0,0 +1,166 @@
1
+ import time
2
+ from typing import Any, Dict, List, Optional
3
+
4
+ from sqlalchemy import and_, create_engine, select, update
5
+ from sqlalchemy.ext.asyncio import async_sessionmaker, create_async_engine
6
+ from sqlalchemy.orm import sessionmaker
7
+
8
+ from flux_batch.service.scribe.models import Base, EventModel, EventRecord, JobModel, JobRecord
9
+
10
+
11
+ def _record_event_internal(session, cluster: str, uid: str, event: Dict[str, Any]):
12
+ """
13
+ Shared synchronous logic for recording events.
14
+ Used by both Sync and Async backends.
15
+ """
16
+ job_id = event.get("id")
17
+ event_type = event.get("type")
18
+ data = event.get("payload", {})
19
+ timestamp = event.get("timestamp", time.time())
20
+
21
+ # Add the new event with all metadata
22
+ new_event = EventModel(
23
+ job_id=job_id,
24
+ cluster=cluster,
25
+ timestamp=timestamp,
26
+ event_type=event_type,
27
+ uid=uid,
28
+ payload=data,
29
+ )
30
+ session.add(new_event)
31
+
32
+ if event_type == "submit":
33
+ stmt = select(JobModel).where(and_(JobModel.job_id == job_id, JobModel.cluster == cluster))
34
+ job = session.execute(stmt).scalar_one_or_none()
35
+
36
+ if not job:
37
+ job = JobModel(
38
+ job_id=job_id,
39
+ cluster=cluster,
40
+ user=str(data.get("userid", "unknown")),
41
+ state="submitted",
42
+ workdir=data.get("cwd", ""),
43
+ submit_time=timestamp,
44
+ last_updated=timestamp,
45
+ uid=uid,
46
+ )
47
+ session.add(job)
48
+ else:
49
+ job.state = "submitted"
50
+ job.last_updated = timestamp
51
+
52
+ # state transitions
53
+ elif event_type == "state" or (event_type and event_type.endswith(".finish")):
54
+ state_name = data.get("state_name", event_type)
55
+ stmt = select(JobModel).where(and_(JobModel.job_id == job_id, JobModel.cluster == cluster))
56
+ job = session.execute(stmt).scalar_one_or_none()
57
+ if job:
58
+ job.state = state_name
59
+ job.last_updated = time.time()
60
+ if "status" in data:
61
+ job.exit_code = data["status"]
62
+
63
+
64
+ class AsyncSQLAlchemyBackend:
65
+ """
66
+ Asynchronous backend for the MCP Gateway.
67
+ """
68
+
69
+ def __init__(self, db_url: str, use_ssl: bool = False):
70
+ # Use asyncio connection via asyncmy
71
+ if db_url.startswith("mysql://") or db_url.startswith("mariadb://"):
72
+ db_url = db_url.replace("mysql://", "mysql+asyncmy://", 1)
73
+ db_url = db_url.replace("mariadb://", "mysql+asyncmy://", 1)
74
+
75
+ connect_args = {"connect_timeout": 10}
76
+ if use_ssl:
77
+ print("SSL is enabled.")
78
+ connect_args["ssl"] = {"ssl_mode": "REQUIRED", "check_hostname": False}
79
+
80
+ self.engine = create_async_engine(db_url, echo=False, connect_args=connect_args)
81
+ self.SessionLocal = async_sessionmaker(self.engine, expire_on_commit=False)
82
+
83
+ async def initialize(self):
84
+ async with self.engine.begin() as conn:
85
+ await conn.run_sync(Base.metadata.create_all)
86
+
87
+ async def close(self):
88
+ await self.engine.dispose()
89
+
90
+ async def record_event(self, cluster: str, event: Dict[str, Any]):
91
+ async with self.SessionLocal() as session:
92
+ # run_sync bridges our shared logic into the async session
93
+ await session.run_sync(_record_event_internal, cluster, event)
94
+ await session.commit()
95
+
96
+ async def get_job(self, cluster: str, job_id: int) -> Optional[JobRecord]:
97
+ async with self.SessionLocal() as session:
98
+ result = await session.execute(
99
+ select(JobModel).where(and_(JobModel.job_id == job_id, JobModel.cluster == cluster))
100
+ )
101
+ job = result.scalar_one_or_none()
102
+ return job.to_record() if job else None
103
+
104
+ async def get_event_history(self, cluster: str, job_id: int) -> List[EventRecord]:
105
+ async with self.SessionLocal() as session:
106
+ result = await session.execute(
107
+ select(EventModel)
108
+ .where(and_(EventModel.job_id == job_id, EventModel.cluster == cluster))
109
+ .order_by(EventModel.timestamp.asc())
110
+ )
111
+ return [e.to_record() for e in result.scalars().all()]
112
+
113
+ async def search_jobs(
114
+ self, cluster: str = None, state: str = None, limit: int = 10
115
+ ) -> List[JobRecord]:
116
+ async with self.SessionLocal() as session:
117
+ stmt = select(JobModel)
118
+ if cluster:
119
+ stmt = stmt.where(JobModel.cluster == cluster)
120
+ if state:
121
+ stmt = stmt.where(JobModel.state == state)
122
+ result = await session.execute(stmt.limit(limit))
123
+ return [j.to_record() for j in result.scalars().all()]
124
+
125
+
126
+ class SQLAlchemyBackend:
127
+ """
128
+ Synchronous backend for the standalone Scribe daemon.
129
+ """
130
+
131
+ def __init__(self, db_url: str, use_ssl: bool = False):
132
+ connect_args = {"connect_timeout": 10}
133
+ if use_ssl:
134
+ print("SSL is enabled.")
135
+ connect_args["ssl"] = {"ssl_mode": "REQUIRED", "check_hostname": False}
136
+
137
+ self.engine = create_engine(db_url, echo=False, connect_args=connect_args)
138
+ self.SessionLocal = sessionmaker(bind=self.engine, expire_on_commit=False)
139
+
140
+ def initialize(self):
141
+ Base.metadata.create_all(self.engine)
142
+
143
+ def close(self):
144
+ self.engine.dispose()
145
+
146
+ def record_event(self, cluster: str, uid: str, event: Dict[str, Any]):
147
+ with self.SessionLocal() as session:
148
+ with session.begin():
149
+ _record_event_internal(session, cluster, uid, event)
150
+
151
+ def get_unwatched_job_ids(self, cluster: str) -> List[int]:
152
+ """Specific for Scribe: find jobs that need a watcher."""
153
+ with self.SessionLocal() as session:
154
+ stmt = select(JobModel.job_id).where(
155
+ and_(JobModel.cluster == cluster, JobModel.state == "submitted")
156
+ )
157
+ return list(session.execute(stmt).scalars().all())
158
+
159
+ def mark_job_as_watched(self, cluster: str, job_id: int):
160
+ with self.SessionLocal() as session:
161
+ with session.begin():
162
+ session.execute(
163
+ update(JobModel)
164
+ .where(and_(JobModel.job_id == job_id, JobModel.cluster == cluster))
165
+ .values(state="watching")
166
+ )
@@ -0,0 +1,107 @@
1
+ from dataclasses import dataclass
2
+ from typing import Any, Dict, Optional
3
+
4
+ from sqlalchemy import JSON, Float, Integer, String
5
+ from sqlalchemy.ext.asyncio import AsyncAttrs
6
+ from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
7
+
8
+ # DTOs are "Public Data Transfer Objects" and they are used by
9
+ # our interfaces and tools
10
+
11
+
12
+ @dataclass
13
+ class JobRecord:
14
+ """
15
+ Represents a snapshot of a job state.
16
+ Returned by get_job() and search_jobs().
17
+ """
18
+
19
+ job_id: str
20
+ cluster: str
21
+ state: str
22
+ user: str
23
+ workdir: Optional[str] = None
24
+ exit_code: Optional[int] = None
25
+ submit_time: float = 0.0
26
+ last_updated: float = 0.0
27
+ uid: str = None
28
+
29
+
30
+ @dataclass
31
+ class EventRecord:
32
+ """
33
+ Represents a single historical event.
34
+ Returned by get_event_history().
35
+ """
36
+
37
+ timestamp: float
38
+ event_type: str
39
+ payload: Dict[str, Any]
40
+ uid: str = None
41
+
42
+
43
+ # Database models for SQLAlchemy ORM
44
+
45
+
46
+ class Base(AsyncAttrs, DeclarativeBase):
47
+ pass
48
+
49
+
50
+ class JobModel(Base):
51
+ __tablename__ = "jobs"
52
+
53
+ # Composite Primary Key
54
+ cluster: Mapped[str] = mapped_column(String(255), primary_key=True)
55
+ job_id: Mapped[str] = mapped_column(String(255), primary_key=True)
56
+ uid: Mapped[str] = mapped_column(String(255), nullable=True)
57
+
58
+ state: Mapped[str] = mapped_column(String(50))
59
+ user: Mapped[str] = mapped_column(String(255), nullable=True)
60
+
61
+ # Fixed: Added length 1024 for MySQL/MariaDB compatibility
62
+ workdir: Mapped[Optional[str]] = mapped_column(String(1024), nullable=True)
63
+
64
+ exit_code: Mapped[Optional[int]] = mapped_column(Integer, nullable=True)
65
+ submit_time: Mapped[float] = mapped_column(Float, default=0.0)
66
+ last_updated: Mapped[float] = mapped_column(Float, default=0.0)
67
+
68
+ def to_record(self) -> JobRecord:
69
+ """
70
+ Helper to convert ORM model to public DTO
71
+ """
72
+ return JobRecord(
73
+ job_id=self.job_id,
74
+ cluster=self.cluster,
75
+ state=self.state,
76
+ user=self.user,
77
+ workdir=self.workdir,
78
+ exit_code=self.exit_code,
79
+ submit_time=self.submit_time,
80
+ last_updated=self.last_updated,
81
+ uid=self.uid,
82
+ )
83
+
84
+
85
+ class EventModel(Base):
86
+ __tablename__ = "events"
87
+
88
+ id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True)
89
+ job_id: Mapped[str] = mapped_column(String(255), primary_key=True)
90
+ cluster: Mapped[str] = mapped_column(String(255), index=True)
91
+ timestamp: Mapped[float] = mapped_column(Float)
92
+ event_type: Mapped[str] = mapped_column(String(50))
93
+ payload: Mapped[Dict[str, Any]] = mapped_column(JSON)
94
+ uid: Mapped[str] = mapped_column(String(255), nullable=True)
95
+
96
+ def to_record(self) -> EventRecord:
97
+ """
98
+ Helper to convert ORM model to public DTO
99
+ """
100
+ return EventRecord(
101
+ timestamp=self.timestamp,
102
+ event_type=self.event_type,
103
+ payload=self.payload,
104
+ cluster=self.cluster,
105
+ job_id=self.job_id,
106
+ uid=self.uid,
107
+ )
@@ -0,0 +1,2 @@
1
+ MODULE_NAME = "flux_batch.service.usernetes"
2
+ from .template import SERVICE_TEMPLATE, START_MODULE_TEMPLATE, STOP_MODULE_TEMPLATE
@@ -0,0 +1,53 @@
1
+ # Template for the Scribe Journal Consumer
2
+ SERVICE_TEMPLATE = """[Unit]
3
+ Description=Flux Scribe Journal Consumer
4
+ After=network.target
5
+
6
+ [Service]
7
+ ExecStart={python_path} -m flux_batch.service.scribe
8
+ Restart=on-failure
9
+
10
+ [Install]
11
+ WantedBy=default.target
12
+ """
13
+
14
+ START_MODULE_TEMPLATE = """
15
+ from flux.modprobe import task
16
+ import flux.subprocess as subprocess
17
+
18
+ @task(
19
+ "start-{service_name}",
20
+ ranks="0",
21
+ needs_config=["{service_name}"],
22
+ after=["resource", "job-list"],
23
+ )
24
+ def start_{service_func}(context):
25
+ # This triggers the systemd user service provisioned earlier
26
+ # context.bash("systemctl --user start {service_name}")
27
+ subprocess.rexec_bg(
28
+ context.handle,
29
+ ["{python_bin}", "-m", "{module_name}"],
30
+ label="{service_name}",
31
+ nodeid=0
32
+ )
33
+ """
34
+
35
+ STOP_MODULE_TEMPLATE = """
36
+ from flux.modprobe import task
37
+ import flux.subprocess as subprocess
38
+
39
+ @task(
40
+ "stop-{service_name}",
41
+ ranks="0",
42
+ needs_config=["{service_name}"],
43
+ before=["resource", "job-list"],
44
+ )
45
+ def stop_{service_func}(context):
46
+ # context.bash("systemctl --user stop {service_name}")
47
+ subprocess.kill(context.handle, signum=2, label="{service_name}").get()
48
+ try:
49
+ status = subprocess.wait(context.handle, label="{service_name}").get()["status"]
50
+ print(status)
51
+ except:
52
+ pass
53
+ """
@@ -1,4 +1,4 @@
1
- __version__ = "0.0.12"
1
+ __version__ = "0.0.13"
2
2
  AUTHOR = "Vanessa Sochat"
3
3
  AUTHOR_EMAIL = "vsoch@users.noreply.github.com"
4
4
  NAME = "flux-batch"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: flux-batch
3
- Version: 0.0.12
3
+ Version: 0.0.13
4
4
  Summary: Python SDK for flux batch jobs and services
5
5
  Home-page: https://github.com/converged-computing/flux-batch
6
6
  Author: Vanessa Sochat
@@ -47,6 +47,8 @@ Requires-Dist: rich; extra == "scribe"
47
47
  - [fractale-mcp](https://github.com/compspec/fractale-mcp): (fractale) MCP orchestration (agents, databases, ui interfaces).
48
48
  - [hpc-mcp](https://github.com/converged-computing/hpc-mcp): HPC tools for a larger set of HPC and converged computing use cases.
49
49
 
50
+ If you are looking for `flux batch` please see the documentation [here](https://flux-framework.readthedocs.io/projects/flux-core/en/latest/man1/flux-batch.html). This library supports Flux Framework and is experimental.
51
+
50
52
  ## Services
51
53
 
52
54
  - **flux-scribe**: Write job events to a local sqlite database via the JournalConsumer (not added yet, written and needs testing)
@@ -28,6 +28,11 @@ flux_batch/service/scribe/__main__.py
28
28
  flux_batch/service/scribe/database.py
29
29
  flux_batch/service/scribe/models.py
30
30
  flux_batch/service/scribe/template.py
31
+ flux_batch/service/usernetes/__init__.py
32
+ flux_batch/service/usernetes/__main__.py
33
+ flux_batch/service/usernetes/database.py
34
+ flux_batch/service/usernetes/models.py
35
+ flux_batch/service/usernetes/template.py
31
36
  flux_batch/utils/__init__.py
32
37
  flux_batch/utils/fileio.py
33
38
  flux_batch/utils/text.py
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes