Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created April 6, 2021 07:34
Show Gist options
  • Save AdamBien/165d26f83101c599fda4b8b46fc54828 to your computer and use it in GitHub Desktop.
Save AdamBien/165d26f83101c599fda4b8b46fc54828 to your computer and use it in GitHub Desktop.
86thAirhacksQ&A.md

Ask questions and see you at May, 3rd, 8.PM. CET: https://vimeo.com/event/154379

Also checkout recent episode:

85th airhacks.tv

Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks

@thehpi
Copy link

thehpi commented May 3, 2021

I use the @schedule to schedule jobs which is very convenient.
Every now and then however the job fails which is accepted but when it fails twice it shuts down completely.

Is there a way to disable this behaviour or configure it to a higher value.

I know the solution would be to catch the exception and let it not fail but I don't have control over this class.

@WassimAkachi
Copy link

Hi Adam,

in JavaScript:

  1. do you often use pre defined (DTO)-classes like
// in file: car.js
export default class Car {
  constructor(name, year) {
    this.name = name;
    this.year = year;
  }
}


// in some other js-file

import './car.js'

// some logic

const car = Car("Hey Car", 2021);

// store in Redux
dispatch({
"action": "CAR_CREATED",
"payload":  car
});
  1. or do you prefer to build objects on the flight?

When would you prefer one over the other? Which approach do you suggest?

Thank you,
Wassim

@WassimAkachi
Copy link

Hi Adam,

when one js-module (e.g. common-module.js) is imported in multiple different js-modules, is the code inside the common-module.js executed multiple times? Or is the module like static-code block in Java?

Thank you,
Wassim

@dabkhazi
Copy link

dabkhazi commented May 3, 2021

I use the @schedule to schedule jobs which is very convenient.
Every now and then however the job fails which is accepted but when it fails twice it shuts down completely.

Is there a way to disable this behaviour or configure it to a higher value.

I know the solution would be to catch the exception and let it not fail but I don't have control over this class.

I also ran into a similar problem in openliberty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment