Skip to content

Commit

Permalink
Apply automatic release changes for v0.0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
NaveenKinnal authored and actions-user committed Jan 20, 2023
1 parent 5306a19 commit 873bb17
Show file tree
Hide file tree
Showing 65 changed files with 12,056 additions and 9,910 deletions.
1,221 changes: 711 additions & 510 deletions components/lab-job-scheduler/backend/Pipfile.lock

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions components/lab-job-scheduler/backend/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

## Modules

- [`lab_job_scheduler.app`](./lab_job_scheduler.app.md#module-lab_job_schedulerapp)
- [`lab_job_scheduler.config`](./lab_job_scheduler.config.md#module-lab_job_schedulerconfig)
- [`lab_job_scheduler.job_deployer`](./lab_job_scheduler.job_deployer.md#module-lab_job_schedulerjob_deployer)
- [`lab_job_scheduler.schema`](./lab_job_scheduler.schema.md#module-lab_job_schedulerschema)
- [`lab_job_scheduler.utils`](./lab_job_scheduler.utils.md#module-lab_job_schedulerutils)

## Classes

Expand All @@ -15,11 +17,23 @@

## Functions

- [`app.create_schedule`](./lab_job_scheduler.app.md#function-create_schedule)
- [`app.delete_schedule`](./lab_job_scheduler.app.md#function-delete_schedule)
- [`app.delete_schedules`](./lab_job_scheduler.app.md#function-delete_schedules)
- [`app.executor_info`](./lab_job_scheduler.app.md#function-executor_info)
- [`app.get_all_scheduled_jobs_from_db`](./lab_job_scheduler.app.md#function-get_all_scheduled_jobs_from_db): Returns all jobs from the database.
- [`app.get_job_from_job_input`](./lab_job_scheduler.app.md#function-get_job_from_job_input)
- [`app.get_next_run_time`](./lab_job_scheduler.app.md#function-get_next_run_time): Returns the next run time of a job.
- [`app.list_schedule`](./lab_job_scheduler.app.md#function-list_schedule)
- [`app.list_schedules`](./lab_job_scheduler.app.md#function-list_schedules)
- [`app.on_startup`](./lab_job_scheduler.app.md#function-on_startup)
- [`app.update_schedule`](./lab_job_scheduler.app.md#function-update_schedule)
- [`job_deployer.deploy_job`](./lab_job_scheduler.job_deployer.md#function-deploy_job): Executes a job.
- [`job_deployer.get_next_run_time`](./lab_job_scheduler.job_deployer.md#function-get_next_run_time): Returns the next run time of a job.
- [`job_deployer.is_due`](./lab_job_scheduler.job_deployer.md#function-is_due): Checks if a job is due.
- [`job_deployer.run_scheduled_jobs`](./lab_job_scheduler.job_deployer.md#function-run_scheduled_jobs): Runs all scheduled jobs.
- [`job_deployer.update_db`](./lab_job_scheduler.job_deployer.md#function-update_db): Updates the last run and next run of a job.
- [`utils.get_component_manager`](./lab_job_scheduler.utils.md#function-get_component_manager): Returns the initialized component manager.


---
Expand Down
205 changes: 205 additions & 0 deletions components/lab-job-scheduler/backend/docs/lab_job_scheduler.app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
<!-- markdownlint-disable -->

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L0"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

# <kbd>module</kbd> `lab_job_scheduler.app`




**Global Variables**
---------------
- **CREATE_RESOURCE_RESPONSES**
- **JOB_INTERVAL**
- **CONTAXY_API_ENDPOINT**
- **cached_scheduled_jobs**
- **lock**

---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L41"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `on_startup`

```python
on_startup() → None
```






---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L71"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `create_schedule`

```python
create_schedule(
project_id: str,
job_input: ScheduledJobInput,
component_manager: ComponentOperations = Depends(get_component_manager)
) → Any
```






---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L99"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `list_schedules`

```python
list_schedules(project_id: str) → Any
```






---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L118"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `list_schedule`

```python
list_schedule(project_id: str, job_id: str) → Any
```






---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L141"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `delete_schedules`

```python
delete_schedules(
project_id: str,
component_manager: ComponentOperations = Depends(get_component_manager)
) → Any
```






---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L158"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `delete_schedule`

```python
delete_schedule(
project_id: str,
job_id: str,
component_manager: ComponentOperations = Depends(get_component_manager)
) → Any
```






---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L182"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `update_schedule`

```python
update_schedule(
project_id: str,
job_input: ScheduledJobInput,
job_id: str,
component_manager: ComponentOperations = Depends(get_component_manager)
) → Any
```






---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L212"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `executor_info`

```python
executor_info() → Any
```






---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L224"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `get_all_scheduled_jobs_from_db`

```python
get_all_scheduled_jobs_from_db(
component_manager: ComponentOperations,
project_id: str
) → List[ScheduledJob]
```

Returns all jobs from the database.


---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L233"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `get_job_from_job_input`

```python
get_job_from_job_input(
job_schedule: ScheduledJobInput,
job_id: Optional[str] = None
) → ScheduledJob
```






---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/app.py#L246"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `get_next_run_time`

```python
get_next_run_time(job_schedule: ScheduledJobInput) → datetime
```

Returns the next run time of a job.




---

_This file was automatically generated via [lazydocs](https://github.com/ml-tooling/lazydocs)._
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- markdownlint-disable -->

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/utils.py#L0"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

# <kbd>module</kbd> `lab_job_scheduler.utils`




**Global Variables**
---------------
- **CONTAXY_API_ENDPOINT**

---

<a href="https://github.com/ml-tooling/contaxy/blob/main/components/lab-job-scheduler/backend/src/lab_job_scheduler/utils.py#L12"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `get_component_manager`

```python
get_component_manager(
token: str = Depends(APITokenExtractor)
) → ComponentOperations
```

Returns the initialized component manager.

This is used as FastAPI dependency and called for every request.




---

_This file was automatically generated via [lazydocs](https://github.com/ml-tooling/lazydocs)._
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Information about this library. This file will automatically changed."""

__version__ = "0.1.0.dev1"
__version__ = "0.0.23"
# __author__
# __email__
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Information about this library. This file will automatically changed."""

__version__ = "0.1.0.dev1"
__version__ = "0.0.23"
# __author__
# __email__
Loading

0 comments on commit 873bb17

Please sign in to comment.