ExaWorks / job-api-spec

https://exaworks.org/job-api-spec/
3 stars 3 forks source link

Specification: what happens on callback failures? #133

Open andre-merzky opened 3 years ago

andre-merzky commented 3 years ago

The specification is currently silent on implementation behavior when state notification callbacks raise an exception.

I suggest that we define that exceptions are ignored (but SHOULD be logged). It is the responsibility of the application to make sure the cb is safe.

hategan commented 3 years ago

Yes, I think an implementation note encouraging implementations to ignore but loudly log CB exceptions is a good idea.