-
Notifications
You must be signed in to change notification settings - Fork 51
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
Harmony 1985 - Add cron service to run scheduled jobs #702
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it out successfully running in developer mode (not harmony in a box).
bin/deploy-services
Outdated
envsubst < $file | kubectl apply -f - -n harmony | ||
|
||
# create the work failer | ||
file="services/work-failer/config/service-template.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the work-failer removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was a mistake - fixed
import { CronJob } from './cronjob'; | ||
|
||
/** | ||
* Find work items that are older than notUpdatedForMinutes and delete them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: indentation looks off for the JSDocs for this and the next function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
bin/deploy-services
Outdated
exit 1 | ||
fi | ||
envsubst < $file | kubectl apply -f - -n harmony | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be removed otherwise you get syntax error because the fi
won't match on line 68.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
bin/deploy-services
Outdated
|
||
# create the work failer | ||
# create the work failer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: fix the indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully with harmony in a box.
Jira Issue ID
HARMONY-1985
Description
Adds a cron service that can run scheduled jobs and move work-reaper functionality to it.
Local Test Steps
For harmony in a box:
npm run build
in theservices/cron-service
directory.env
file to make thework-reaper
run every minute and to have it reap any work-items and workflow-steps that are more than 1 minute old, so you will be able to see things happening faster:k9s
orkubectl
to verify that thecron-service
microservice is running, then tail the log on the podFor sandbox:
./bin/deploy
in the harmony-ci-cd directoryPR Acceptance Checklist