Skip to content

make timeout configurable #112

@trgill

Description

@trgill

@prajnoha this comment is for when we've got re-usable workers? Currently the kill() won't block, so we don't need a timeout here. (?)

/* FIXME: Make timeout configurable. If timeout is set to zero, exit worker right away - call

/* FIXME: Make timeout configurable. If timeout is set to zero, exit worker right away - call
_make_worker_exit.
	*
timeout_usec = util_get_now_usec(CLOCK_MONOTONIC) + DEFAULT_WORKER_IDLE_TIMEOUT_USEC;
sid_resource_create_time_event_source(chan->owner, &worker_proxy->idle_timeout_es, CLOCK_MONOTONIC,
				                                  timeout_usec, 0, _on_worker_proxy_idle_timeout_event, "idle
timeout", chan->owner); _change_worker_proxy_state(chan->owner, WORKER_STATE_IDLE);
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions