acorn-io / runtime

A simple application deployment framework built on Kubernetes
https://docs.acorn.io/
Apache License 2.0
1.14k stars 101 forks source link

Jobs that have not been started yet (like on delete job) are shown with "completed" status. #2404

Open sangee2004 opened 6 months ago

sangee2004 commented 6 months ago

acorn - version v0.10.0-rc2-7-ge533da10+e533da10

Steps to reproduce the problem:

  1. 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"] } }

2. 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.