Fork me on GitHub
#onyx
<
2018-05-31
>
dbernal14:05:30

anybody have a tenancy id strategy for a job that runs every 1 hour? For example, should the tenancy id be different each time the job is run? I've had some issues in the past with reusing tenancy id for the same job on different runs so I was wondering if anyone had some experience dealing with this use case

lmergen15:05:55

@dbernal when you say "same job", do you mean resuming a job ? or submitting a new job ?

lmergen15:05:03

there should be no reason why you have to change the tenancy id

dbernal16:05:45

@lmergen In this case I was submitting a new job. I'm trying to see if there would be any issues with resubmitting a new job with the same tenancy id. In this case it's a batch job so it needs to run on a schedule. And also, in the instance that the job fails, could the new job reuse the tenancy id or will that cause problems

lmergen16:05:41

no, tenancy id is useful in case of multiple tenants, or when you want to update your code while using the same zookeeper cluster

lmergen16:05:58

(the last part is how i use it)

lmergen16:05:16

what kind of errors are you seeing if onyx does not pick up a second job submission ?

dbernal16:05:04

I'm not sure if it was a specific error but it had difficulty starting. It was kind of hard to debug but the problem was fixed after I deleted the znode for that tenancy id and without knowing specifically what Onyx does when reusing a tenancy id I assumed it got into a bad state. But I guess my assumption is that the znode stores state for the running job

lucasbradstreet16:05:15

Is it possible that the previous job never completed / wasn’t killed?

dbernal16:05:15

@lucasbradstreet yea, I think that was the case in this instance