Code Monkey home page Code Monkey logo

batch-in-2019's Introduction

CircleCI

Batch-In-2019

The repository for my talk titled the same

Running the demo:

  1. Delete apps if needed
    cf delete mminella-grafana
    cf delete mminella-pushgateway
    cf delete mminella-prometheus
    cf delete mminella-data-flow-server
    cf delete mminella-skipper-server
    
  2. Push apps
    cd bin
    cf push -f server.yml
    
  3. Register task application
    Name: s1t-chicago-job
    Type: Task
    URI: maven://io.spring.batch:batch-job:jar:0.0.1-SNAPSHOT
    
  4. Create Task
    chicago-job
    
  5. Schedule Task
    chicago-schedule
    

DB Cleanup

DELETE FROM BATCH_STEP_EXECUTION_CONTEXT;
DELETE FROM BATCH_STEP_EXECUTION;
DELETE FROM BATCH_JOB_EXECUTION_CONTEXT;
DELETE FROM BATCH_JOB_EXECUTION_PARAMS;
DELETE FROM BATCH_JOB_EXECUTION;
DELETE FROM BATCH_JOB_INSTANCE;
DELETE FROM TASK_LOCK;
DELETE FROM TASK_TASK_BATCH;
DELETE FROM TASK_EXECUTION_PARAMS;
DELETE FROM TASK_EXECUTION;

cron expression: */1 * ? * *

        PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
        APP_BODY="uri=maven%3A%2F%2Fio.spring.batch%3Abatch-job%3A$PROJECT_VERSION"
        curl 'https://mminella-data-flow-server.apps.pcfone.io/tasks/definitions/devnexus-job' -i -X DELETE
        curl 'https://mminella-data-flow-server.apps.pcfone.io/apps/task/batch-job' -i -X DELETE
        curl 'https://mminella-data-flow-server.apps.pcfone.io/apps/task/batch-job' -i -X POST -d $APP_BODY
        curl 'https://mminella-data-flow-server.apps.pcfone.io/tasks/definitions' -i -X POST -d 'name=devnexus-job&definition=batch-job'

Grafana default auth: admin/admin

batch-in-2019's People

Contributors

fmbenhassine avatar mminella avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

batch-in-2019's Issues

[QUESTION]: Setting up JobRepository

Might a very stupid question, but in my case I have 2 data sources (input and output). Each has own database.

How does one setup JobRepository in that case? As far as I understood from video https://youtu.be/bhFBtNiZYYY , JobRepository is storing to/reading from some relational database as well. So that it could keep track of what batch was processed and what might have failed and requires re-run attempt, etc.

I can't find any clear example of it. Yet again, might be a very stupid question.
Thank you in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.