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

Support mssql #186

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Django APScheduler

[APScheduler](https://github.com/agronholm/apscheduler) for [Django](https://github.com/django/django).

This fork is specifically intended to support Microsoft SQL Server.

This is a Django app that adds a lightweight wrapper around APScheduler. It enables storing persistent jobs in the
database using Django's ORM.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Generated by Django 3.0.3 on 2020-09-25 09:51

from django.db import migrations, models
import django.db.models.deletion


# Functions from the following migrations need manual copying.
# Move them and any dependencies into this file, then update the
# RunPython operations to refer to the local versions:
# django_apscheduler.migrations.0005_migrate_name_to_id

class Migration(migrations.Migration):

replaces = [('django_apscheduler', '0001_initial'), ('django_apscheduler', '0002_auto_20180412_0758'), ('django_apscheduler', '0003_auto_20200716_1632'), ('django_apscheduler', '0004_auto_20200717_1043'), ('django_apscheduler', '0005_migrate_name_to_id'), ('django_apscheduler', '0006_remove_djangojob_name'), ('django_apscheduler', '0007_auto_20200717_1404'), ('django_apscheduler', '0008_remove_djangojobexecution_started')]

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='DjangoJob',
fields=[
('id', models.CharField(help_text='Unique id for this job.', max_length=255, primary_key=True, serialize=False)),
('next_run_time', models.DateTimeField(blank=True, db_index=True, help_text='Date and time at which this job is scheduled to be executed next.', null=True)),
('job_state', models.BinaryField()),
],
options={
'ordering': ('next_run_time',),
},
),
migrations.CreateModel(
name='DjangoJobExecution',
fields=[
('id', models.BigAutoField(help_text='Unique ID for this job execution.', primary_key=True, serialize=False)),
('status', models.CharField(choices=[('Started execution', 'Started execution'), ('Error!', 'Error!'), ('Executed', 'Executed')], help_text='The current status of this job execution.', max_length=50)),
('run_time', models.DateTimeField(db_index=True, help_text='Date and time at which this job was executed.')),
('duration', models.DecimalField(decimal_places=2, default=None, help_text='Total run time of this job (in seconds).', max_digits=15, null=True)),
('finished', models.DecimalField(decimal_places=2, default=None, help_text='Timestamp at which this job was finished.', max_digits=15, null=True)),
('exception', models.CharField(help_text='Details of exception that occurred during job execution (if any).', max_length=1000, null=True)),
('traceback', models.TextField(help_text='Traceback of exception that occurred during job execution (if any).', null=True)),
('job', models.ForeignKey(help_text='The job that this execution relates to.', on_delete=django.db.models.deletion.CASCADE, to='django_apscheduler.DjangoJob')),
],
options={
'ordering': ('-run_time',),
},
),
]
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
description="APScheduler for Django",
long_description=long_description,
long_description_content_type="text/markdown",
url="http://github.com/jcass77/django-apscheduler",
url="http://github.com/openimis/django-apscheduler",
author="Jarek Glowacki, Stas Kaledin, John Cass",
author_email="[email protected], [email protected], [email protected]",
license="MIT",
Expand All @@ -33,7 +33,7 @@
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
],
keywords="django apscheduler django-apscheduler",
keywords="django apscheduler django-apscheduler mssql sqlserver",
packages=find_packages(exclude=("tests",)),
install_requires=[
"django>=3.2",
Expand Down