utils/tasks:
utils/tasks:

Fixed a very strange bug. Before this work on the event based calculator,
the `hazard_curves` task (in the classical calculator) was the only place
in the codebase to make use of the new @oqtask decorator.

So when I tried to execute the `stochastic_event_sets` tasks (using the
@oqtask decorator), for some reason it would try to execute `hazard_curve`
instead. Very strange.

The solution was to add a functools.wraps decorator to the wrapped function.
Although this fixed the issue, it's not clear from the functools documentation
why this helped. :(


Former-commit-id: 00bb014534cebaf3fad5ec279d4cc804d252c2a1 [formerly 00bb014534cebaf3fad5ec279d4cc804d252c2a1 [formerly bd4f86d9430d504e986b9911e289a306122d0797]]
Former-commit-id: 5f685b0836c5064cca3e2a7b978209532ce80313
Former-commit-id: f68e98b5a791c9c2c71e0150ba5a0c1f827c186c
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine