Skip to content

Provision to initiate Job Execution #5

Description

@gomathi-mallow
  • Create a new table named job_executions with the below database schema
Column Name Data Type
id uuid
requestor_id integer
job_id uuid
requestor_comments varchar
arguments json
status integer
reason_for_failure varchar
auto_execute_on_approval boolean
run_at timestamp
execution_started_at timestamp
created_at timestamp
updated_at timestamp
  • Create a new model for the JobExecution and add required validations on the model
  • The status has to be declared as Enum and below can be the status
    - Requested
    - Approved
    - Rejected
    - Executed
    - Cancelled
    - Succeeded
    - Failed
  • requestor_comments is a mandatory field
  • Once the job execution is created the status to be marked as requested automatically
  • Implement the index, edit andshow actions for job_executions

Activity

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

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions