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

A cron job can only be added if a crontab already exists. #876

Closed
VanderleiVargas-NOAA opened this issue Aug 3, 2023 · 1 comment · Fixed by #871
Closed

A cron job can only be added if a crontab already exists. #876

VanderleiVargas-NOAA opened this issue Aug 3, 2023 · 1 comment · Fixed by #871
Assignees
Labels
bug Something isn't working

Comments

@VanderleiVargas-NOAA
Copy link

Expected behavior

WE2E tests should add jobs to cron.

Current behavior

It seems that WE2E tests are only adding jobs to cron when crontab already exists in the system.

Steps To Reproduce

Remove crontab with
crontab -r
and try to run any WE2E test.

Detailed Description of Fix

if ! crontab -l &> /dev/null ; then
# if crontab does not exist, create a black crontab
    echo "" | crontab -
fi
@VanderleiVargas-NOAA VanderleiVargas-NOAA added the bug Something isn't working label Aug 3, 2023
@mkavulich
Copy link
Collaborator

Thanks for reporting this issue! I was able to replicate it on Hera and will incorporate a fix into my draft test improvements PR #871

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants