optimus icon indicating copy to clipboard operation
optimus copied to clipboard

feat : `JobRunInput` api Integrate with `Init Containers`

Open Mryashbhardwaj opened this issue 2 years ago • 0 comments

Description Integrate the JobRunInput api with Init Containers

Acceptance Criteria

  • [ ] Init containers working with JobRunInput
  • [ ] RegisterInstance api triggered without asset fetch request, for backward compatibility
  • [ ] RegisterInstance kept as a fallback for failed JobRunInput requests, JobRunInput will fail for old job run replays(i.e. those for which notify event has never been triggered)

Depends on : https://github.com/odpf/optimus/issues/405

Tech Details

  1. Use both "RegisterInstance" and "JobRunInput" for now
  2. "RegisterInstance" being the fall back for "JobRunInput" in cases where the jobRunInput fails
  3. also "RegisterInstance" API should be triggered irrespective as well (with a flag telling not to provide compiled assets), for data persistence in job_run_old table , this is required for rollback.

Mryashbhardwaj avatar Aug 09 '22 04:08 Mryashbhardwaj