DeploymentJobData is not being saved
Context
The actions framework allows jobs to upload job data during job execution that could be later used as needed, an example of this could be found in the LaunchInstances
job, where we save the machines id that were created.
When saving machines, we're using a custom deploymentDataType
value called create-machines
instead of the ones provided by the actions framework.
Nevertheless, some other jobs are using the DeploymentJobData
provided by the actions framework but this value is not being saved in the database.
Other information
SELECT id, deployment_id dep_id, job, type, data_type FROM action_deployments_data;
only returns input
and created-machines
data.
+-----+--------+----------------------------------------+------------------+----------------------------+
| id | dep_id | job | type | data_type |
+-----+--------+----------------------------------------+------------------+----------------------------+
| 1 | 1 | check-simulation-pending-status | input | *state.StartSimulation |
| 2 | 1 | check-start-simulation-no-parent | input | *state.StartSimulation |
| 3 | 1 | check-sim-no-errors | input | *state.StartSimulation |
| 4 | 1 | set-simulation-status-launch-instances | input | *state.StartSimulation |
| 5 | 1 | launch-instances | input | *state.StartSimulation |
| 6 | 1 | launch-instances | created-machines | jobs.LaunchInstancesOutput |
| 7 | 2 | check-simulation-pending-status | input | *state.StartSimulation |
| 8 | 2 | check-start-simulation-no-parent | input | *state.StartSimulation |
| 9 | 2 | check-sim-no-errors | input | *state.StartSimulation |
| 10 | 2 | set-simulation-status-launch-instances | input | *state.StartSimulation |
| 11 | 2 | launch-instances | input | *state.StartSimulation |
| 12 | 2 | launch-instances | created-machines | jobs.LaunchInstancesOutput |
| 13 | 3 | check-simulation-pending-status | input | *state.StartSimulation |
| 14 | 3 | check-start-simulation-no-parent | input | *state.StartSimulation |
| 15 | 3 | check-sim-no-errors | input | *state.StartSimulation |
| 16 | 3 | set-simulation-status-launch-instances | input | *state.StartSimulation |
| 17 | 3 | launch-instances | input | *state.StartSimulation |
| 18 | 3 | launch-instances | created-machines | jobs.LaunchInstancesOutput |
| 19 | 4 | check-simulation-pending-status | input | *state.StartSimulation |
| 20 | 4 | check-start-simulation-no-parent | input | *state.StartSimulation |
| 21 | 4 | check-sim-no-errors | input | *state.StartSimulation |
| 22 | 4 | set-simulation-status-launch-instances | input | *state.StartSimulation |
| 23 | 4 | launch-instances | input | *state.StartSimulation |
| 24 | 4 | launch-instances | created-machines | jobs.LaunchInstancesOutput |
| 25 | 5 | check-simulation-pending-status | input | *state.StartSimulation |
| 26 | 5 | check-start-simulation-no-parent | input | *state.StartSimulation |
| 27 | 5 | check-sim-no-errors | input | *state.StartSimulation |
| 28 | 5 | set-simulation-status-launch-instances | input | *state.StartSimulation |
| 29 | 5 | launch-instances | input | *state.StartSimulation |
| 30 | 5 | launch-instances | created-machines | jobs.LaunchInstancesOutput |
| 31 | 5 | set-simulation-status-wait-instances | input | *state.StartSimulation |
| 32 | 5 | wait-for-instances | input | *state.StartSimulation |
| 33 | 5 | set-simulation-status-wait-nodes | input | *state.StartSimulation |
| 34 | 5 | wait-for-nodes | input | *state.StartSimulation |
| 35 | 5 | set-simulation-status-launch-pods | input | *state.StartSimulation |
| 36 | 5 | create-netpol-gzserver | input | *state.StartSimulation |
| 37 | 5 | launch-gzserver-pod | input | *state.StartSimulation |
| 38 | 6 | check-simulation-pending-status | input | *state.StartSimulation |
| 39 | 6 | check-start-simulation-no-parent | input | *state.StartSimulation |
| 40 | 6 | check-sim-no-errors | input | *state.StartSimulation |
| 41 | 6 | set-simulation-status-launch-instances | input | *state.StartSimulation |
| 42 | 6 | launch-instances | input | *state.StartSimulation |
| 43 | 6 | launch-instances | created-machines | jobs.LaunchInstancesOutput |
| 44 | 7 | check-simulation-pending-status | input | *state.StartSimulation |
| 45 | 7 | check-start-simulation-no-parent | input | *state.StartSimulation |
| 46 | 7 | check-sim-no-errors | input | *state.StartSimulation |
| 47 | 7 | set-simulation-status-launch-instances | input | *state.StartSimulation |
| 48 | 7 | launch-instances | input | *state.StartSimulation |
| 49 | 7 | launch-instances | created-machines | jobs.LaunchInstancesOutput |
When running SELECT id, deployment_id dep_id, job, type, data_type FROM action_deployments_data WHERE type = "job";
it returns an empty list.