Sha256: 8264d147c83e08985c9cd2cc8d72085c237b251be41ad8d79897a12859476b34

Contents?: true

Size: 523 Bytes

Versions: 7

Compression:

Stored size: 523 Bytes

Contents

import { get } from 'foremanReact/redux/API';
import {
  withInterval,
  stopInterval,
} from 'foremanReact/redux/middlewares/IntervalMiddleware';
import { JOB_INVOCATION_KEY } from './JobInvocationConstants';

export const getData = url => dispatch => {
  const fetchData = withInterval(
    get({
      key: JOB_INVOCATION_KEY,
      params: { include_permissions: true },
      url,
      handleError: () => {
        dispatch(stopInterval(JOB_INVOCATION_KEY));
      },
    }),
    1000
  );

  dispatch(fetchData);
};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_remote_execution-12.0.7 webpack/JobInvocationDetail/JobInvocationActions.js
foreman_remote_execution-13.0.0 webpack/JobInvocationDetail/JobInvocationActions.js
foreman_remote_execution-12.0.5 webpack/JobInvocationDetail/JobInvocationActions.js
foreman_remote_execution-12.0.4 webpack/JobInvocationDetail/JobInvocationActions.js
foreman_remote_execution-12.0.1 webpack/JobInvocationDetail/JobInvocationActions.js
foreman_remote_execution-12.0.2 webpack/JobInvocationDetail/JobInvocationActions.js
foreman_remote_execution-12.0.0 webpack/JobInvocationDetail/JobInvocationActions.js