Page 1 of 1

How to add new event types

Posted: Tue Nov 03, 2020 8:42 am
by mcvertex
Hello,
I tried to use event handle lately and it works like a charm, but I would like to know if it's possible to code new event types, like JOB_CREATED, or JOB_STARTED for example. In what part of cgru should I check that if I want to add these event types?
Regards,

Re: How to add new event types

Posted: Tue Nov 03, 2020 8:56 am
by timurhai
Hi!
Events are build in Afanasy server code.
To add a new event, you should add it in the code and recompile the project.

But such events as JOB_CREATED and JOB_STARTED can be handled not by the server.
When artist submits a job it is JOB_CREATED - submission script perform event.
When the first job task starts it is JOB_STARTED - job first extra block can do it.

But it is not a big deal to teach (develop) server to emit new events.
For what you need such events?

Re: How to add new event types

Posted: Tue Nov 03, 2020 9:08 am
by mcvertex
In fact the event I need is RENDER_DISCONNECT, but we run the version 2.3.1. We have planned to upgrade to the last version but because we have made a lot of customisations, the upgrade is planned in a few months (too much work right now). I just wanted to know if there was a simple way to just add this specific event now without upgrade to last version. If not it's not a big deal, we will wait :)

Re: How to add new event types

Posted: Tue Nov 03, 2020 9:19 am
by timurhai

Re: How to add new event types

Posted: Tue Nov 03, 2020 9:24 am
by mcvertex
RENDER_ZOMBIE will work I think, we will use this after the update so. thanks for your quick answers