Skip to content

Commit

Permalink
feat: Fixed minor issue. (#148)
Browse files Browse the repository at this point in the history
* feat: Fixed minor issue. If links key is not available assign empty list. Added logs for debugging purpose.

* feat: Fixed minor issue. If links key is not available assign empty list. Added logs for debugging purpose.

* feat: Fixed minor issue. If links key is not available assign empty list. Added logs for debugging purpose.

* feat: Fixed minor issue. If links key is not available assign empty list. Added logs for debugging purpose.

* feat: Fixed minor issue. If links key is not available assign empty list. Added logs for debugging purpose.
  • Loading branch information
awais786 authored Jun 2, 2021
1 parent e2c02d5 commit 6c308ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ Unreleased

*

[2.0.2] - 2021-05-28
~~~~~~~~~~~~~~~~~~~~

Changed
+++++++

* Fixed minor issue. If links key is not available assign empty list. Added logs.


[2.0.1] - 2021-05-28
~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion user_tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from django.dispatch import Signal

__version__ = '2.0.1'
__version__ = '2.0.2'

default_app_config = 'user_tasks.apps.UserTasksConfig' # pylint: disable=invalid-name

Expand Down
4 changes: 2 additions & 2 deletions user_tasks/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ def _create_chain_entry(user_id, task_id, task_class, args, kwargs, callbacks, p
parent.increment_total_steps(total_steps)
if parent_name and not parent.name:
parent.set_name(parent_name)

for callback in callbacks:
callback_class = import_string(callback['task'])

_create_chain_entry(
user_id,
callback['options']['task_id'],
callback_class,
callback['args'],
callback['kwargs'],
callback['options']['link'],
callback['options'].get('link', []),
parent=parent
)

Expand Down

0 comments on commit 6c308ef

Please sign in to comment.