-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
- Create a new table named jobs with the below schema:
| Column Name | Data Type |
|---|---|
| id | uuid |
| title | varchar |
| description | varchar |
| input_arguments | json |
| max_run_time | integer |
| minimum_approvals_required | integer |
| priority | integer |
| queue | integer |
| created_at | timestamp |
| updated_at | timestamp |
- Create a new model for the Job and add required validations on the model
-
DescriptionandTitlecannot be left empty - Define the maximum number of characters restriction for
descriptionandtitle - The
input_argumentsis optional and can be left empty - The
queueshould be pre-populated withdefault
-
- Implement the
indexandshowactions only for the jobs - Write automated test cases
Assumptions:
- There will not be any provision to create/update/delete the tasks from the UI.
- The new tasks have to be created from the backend via DB migration
- Need to have provision to download the supporting file templates for the given task if required
- Example format for input_arguments can be like the below:
[
{
"name": "File",
"type": "File",
"allowed_characters": "<Regexp>",
"max_length": "10",
"required": true
},
{
"name": "Imported Date",
"type": "Date",
"required": true
},
{
"name": "Imported Date and Time",
"type": "DateTime",
"required": true
},
{
"name": "client name",
"type": "String",
"required": true,
"allowed_characters": "<Regexp>",
"max_length": "10"
},
{
"name": "Booking ID",
"type": "integer"
}
]
Metadata
Metadata
Assignees
Labels
No labels