Skip to content

Non-zero exit code on run_job failure#100

Open
palfrey wants to merge 5 commits into
kraiz:masterfrom
palfrey:exit-code-on-failure
Open

Non-zero exit code on run_job failure#100
palfrey wants to merge 5 commits into
kraiz:masterfrom
palfrey:exit-code-on-failure

Conversation

@palfrey

@palfrey palfrey commented Jul 20, 2019

Copy link
Copy Markdown

Fixes #99

Comment thread tests/test_crontab.py
@override_settings(CRONJOBS=[('*/1 * * * *', 'tests.cron.cron_job', [1, 'two'], dict(), 'some suffix')])
@patch('tests.cron.cron_job')
def test_run_args_only_format2_job(method_to_call):
def test_run_args_only_format3_job(method_to_call):

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got warnings about this being a duplicate name with the above test, so I renamed it

Comment thread django_crontab/crontab.py
from django_crontab.app_settings import Settings

string_type = basestring if sys.version_info[0] == 2 else str # flake8: noqa
string_type = basestring if sys.version_info[0] == 2 else str # noqa: F821

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite sure why this was now failing, as it's got nothing to do with my changes. Changing to an explicit ignore seems to work fine

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+1.6%) to 91.503% when pulling 0249872 on palfrey:exit-code-on-failure into 978a26d on kraiz:master.

2 similar comments
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+1.6%) to 91.503% when pulling 0249872 on palfrey:exit-code-on-failure into 978a26d on kraiz:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+1.6%) to 91.503% when pulling 0249872 on palfrey:exit-code-on-failure into 978a26d on kraiz:master.

@coveralls

coveralls commented Jul 20, 2019

Copy link
Copy Markdown

Coverage Status

Coverage increased (+1.6%) to 91.503% when pulling b6e7a8c on palfrey:exit-code-on-failure into 978a26d on kraiz:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exit code is 0 on exception

2 participants