Waiting for engine...
Skip to main content

useUpdateProcessSchedules()

useUpdateProcessSchedules():

{ updateProcessSchedules, isUpdating, updateError, +1 more }

Provides an imperative updateProcessSchedules function that:

  1. Resolves Atom IDs attached to an environment,
  2. Retrieves all processes for an integration pack instance,
  3. Constructs a ProcessSchedules payload (including a Retry policy),
  4. Replaces schedules for every (processId × atomId) combination.

Throws

If required context or parameters are missing, or if any update call fails.

Returns

Hook API with the updater function, request state, and the list of updated schedule objects.

isUpdating
boolean

updateError
string

updatedSchedules
ProcessSchedules

updateProcessSchedules()

updateProcessSchedules: (schedules: Schedule[], environmentId: string, integrationPackInstanceId: string) => Promise<void>

Parameters

schedules
Schedule The new schedules to apply.

environmentId
string Environment whose attached Atoms will be targeted.

integrationPackInstanceId
string Integration pack instance whose processes will be updated.

Returns

Promise<void>
On this Page