Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

New version test #126

Merged
merged 6 commits into from
Jan 2, 2024
Merged
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
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Jira one change log

**Release 0.8.2** - 2024-01-02
* Minor fix to `process_executor` function with invalid arguments


**Release 0.8.1** - 2024-01-01
### Minor update #123
- Fix to issue reported on #124
Expand Down
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Below shows the list of supported versions for the jiraone library

| Version | Supported |
|---------|--------------------|
| 0.8.2 | :white_check_mark: |
| 0.8.1 | :white_check_mark: |
| 0.7.9 | :white_check_mark: |
| 0.7.8 | :white_check_mark: |
Expand Down
2 changes: 2 additions & 0 deletions docs/apis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,5 @@ threads to start with by increasing the ``workers`` argument


.. autofunction:: validate_on_error

.. autofunction:: validate_argument_name
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ scipy
numpy
pandas
matplotlib
pillow>=10.0.1 # not directly required, pinned by Snyk to avoid a vulnerability
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "jiraone"
version = "v0.8.1"
version = "v0.8.2"
authors = [
{ name="Prince Nyeche", email="support@elfapp.website" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/jiraone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from jiraone.management import manage

__author__ = "Prince Nyeche"
__version__ = "0.8.1"
__version__ = "0.8.2"
__all__ = [
"LOGIN",
"endpoint",
Expand Down
2 changes: 1 addition & 1 deletion src/jiraone/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -3654,7 +3654,7 @@ def check_field_membership(
"expires",
"an integer of the expiry" " period required for caching",
),
"an integer in seconds for the period of " "caching time",
"an integer in days for the period of " "caching time",
)

validate_on_error(
Expand Down
7 changes: 2 additions & 5 deletions src/jiraone/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def process_executor(
*,
data: t.Iterable = None,
workers: int = 4,
timeout: t.Union[float, int] = 2.5,
**kwargs,
) -> None:
"""
Expand All @@ -108,16 +109,12 @@ def process_executor(
:param func: A function to act upon
:param data: A data that the function processes (an argument)
:param workers: Number of threads to use and wait until terminates
:param timeout: Specifies a timeout if threads are still running
:param kwargs: Additional arguments supplied to Thread class or
the keyword arguments from the function

**Acceptable options**

* timeout: Specifies a timeout if threads are still running

:return: None
"""
timeout: t.Union[float, int] = kwargs.get("timeout", 2.5)
process = threading.Thread(target=func, args=(data,), kwargs=kwargs)
process.start()
if threading.active_count() > workers:
Expand Down
Loading