brynq-sdk-task-scheduler 4.0.8__tar.gz → 4.0.10__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.
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/PKG-INFO +1 -1
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/brynq_sdk_task_scheduler/task_scheduler.py +3 -3
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/brynq_sdk_task_scheduler.egg-info/PKG-INFO +1 -1
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/setup.py +1 -1
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/brynq_sdk_task_scheduler/__init__.py +0 -0
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/brynq_sdk_task_scheduler.egg-info/SOURCES.txt +0 -0
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/brynq_sdk_task_scheduler.egg-info/dependency_links.txt +0 -0
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/brynq_sdk_task_scheduler.egg-info/not-zip-safe +0 -0
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/brynq_sdk_task_scheduler.egg-info/requires.txt +0 -0
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/brynq_sdk_task_scheduler.egg-info/top_level.txt +0 -0
- {brynq_sdk_task_scheduler-4.0.8 → brynq_sdk_task_scheduler-4.0.10}/setup.cfg +0 -0
|
@@ -3,7 +3,7 @@ import os
|
|
|
3
3
|
import datetime
|
|
4
4
|
import inspect
|
|
5
5
|
import time
|
|
6
|
-
from typing import Literal, List, Optional
|
|
6
|
+
from typing import Literal, List, Optional, Union
|
|
7
7
|
import traceback
|
|
8
8
|
import pandas as pd
|
|
9
9
|
import json
|
|
@@ -19,11 +19,11 @@ import re
|
|
|
19
19
|
|
|
20
20
|
class TaskScheduler:
|
|
21
21
|
|
|
22
|
-
def __init__(self, data_interface_id: int = None, loglevel: str = 'INFO', email_after_errors: bool = False):
|
|
22
|
+
def __init__(self, data_interface_id: Union[int, str] = None, loglevel: str = 'INFO', email_after_errors: bool = False):
|
|
23
23
|
"""
|
|
24
24
|
The TaskScheduler is responsible for the logging to the database. Based on this logging, the next reload will
|
|
25
25
|
start or not and warning will be given or not
|
|
26
|
-
:param data_interface_id: The ID from the task as saved in the task_scheduler table in the customer database
|
|
26
|
+
:param data_interface_id: The ID or GUID from the task as saved in the task_scheduler table in the customer database
|
|
27
27
|
:param email_after_errors: a True or False value. When True, there will be send an email to a contactperson of the customer (as given in the database) with the number of errors
|
|
28
28
|
:param loglevel: Chose on which level you want to store the logs. Default is INFO. that means that a logline
|
|
29
29
|
:param disable_logging: If the interface is started from a local instance, logs will not be stored by default. If this is set to True, the logs will be stored in the database
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='brynq_sdk_task_scheduler',
|
|
5
|
-
version='4.0.
|
|
5
|
+
version='4.0.10',
|
|
6
6
|
description='Code to execute tasks in BrynQ.com with the task scheduler',
|
|
7
7
|
long_description='Code to execute tasks in the BrynQ.com platform with the task scheduler',
|
|
8
8
|
author='BrynQ',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|