Jobs that have not been started yet (like on delete job) are shown with "completed" status.
sangee2004 opened this issue · 0 comments
sangee2004 commented
acorn - version v0.10.0-rc2-7-ge533da10+e533da10
Steps to reproduce the problem:
- Deploy app with delete job with following Acornfile
containers: web: {
image: "nginx"
}
jobs: {"create-job": {
image: "busybox"
command: ["sleep", "10s"]
events: ["create","update"]
}
"delete-job": {
image: "busybox"
command: ["sleep", "10s"]
events: ["delete"]
}
}
- Once the app is deployed successfully, notice that the delete job state is shown as "completed" when it is actually not executed.
acorn jobs
NAME STATE LAST RUN NEXT RUN CREATED
mytest1.create-job completed 87s ago N/A 87s ago
mytest1.delete-job completed N/A N/A 104s ago
Expected Behavior:
Delete job status in this case should be some state that indicates that it is not yet scheduled for execution instead of "completed" state.