aodn-archive / DELETE_ME_go-go-duck

NetCDF aggregation service
1 stars 0 forks source link

Using a home-grown queue for queuing jobs #85

Closed jkburges closed 9 years ago

jkburges commented 9 years ago

The previous implementation, using Quartz Scheduler, was a bit of a hack as it was, as quartz is more for scheduling rather than queueing. Additionally, the quartz API doesn't expose things such as number of jobs in the queue, making upcoming work more difficult, if not impossible.

BlockingQueues are thread-safe, so this implementation should be (i.e. to be called within the context of a grails service). I had a bit of trouble unit testing this - I wouldn't mind coming back to this if and when I have time.

danfruehauf commented 9 years ago

@jkburges Prepare the PR and I'll merge it.

jkburges commented 9 years ago

@danfruehauf I don't think there's anything to do on this PR, unless I'm mistaken?

jkburges commented 9 years ago

Comment removed @danfruehauf

danfruehauf commented 9 years ago

Yeah, good to go.