Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to use persistent functions #153

Closed
vasiliy-t opened this issue Aug 18, 2023 · 0 comments · Fixed by #154
Closed

Not able to use persistent functions #153

vasiliy-t opened this issue Aug 18, 2023 · 0 comments · Fixed by #154
Assignees
Labels

Comments

@vasiliy-t
Copy link

vasiliy-t commented Aug 18, 2023

I want to be able to use functions created via box.func.create in expirationd cartridge role configuration. E.g.:

expirationd:
  cfg:
    metrics: true
  task_name1:
    space: 579
    is_expired: box.func.my_custom_func

where function box.func.my_custom_func has been created via box.func.create.

This is not working now because function created via box.func.create are not exported to _G which breaks expirationd configuration (https://github.com/tarantool/expirationd/blob/master/cartridge/roles/expirationd.lua#L10) and leads to errors like this: expirationd: is_expired must be a function name in _G.

bitgorbovsky pushed a commit to bitgorbovsky/expirationd that referenced this issue Aug 18, 2023
A user can configure the role with persistent functions as callback for
task.

Closes tarantool#153
@bitgorbovsky bitgorbovsky self-assigned this Aug 18, 2023
bitgorbovsky pushed a commit to bitgorbovsky/expirationd that referenced this issue Aug 22, 2023
User can configure the role with persistent functions as callbacks for
task.

Closes tarantool#153
oleg-jukovec pushed a commit that referenced this issue Aug 22, 2023
User can configure the role with persistent functions as callbacks for
task.

Closes #153
oleg-jukovec added a commit that referenced this issue Aug 23, 2023
Overview

    The release adds an ability to use functions from `box.func` with
    the Tarantool Cartridge role.

Breaking changes

    None.

New features

    An ability to use persistent functions in `box.func` with
    cartridge. A user can configure the role with persistent functions
    as callback for a task (#153).
oleg-jukovec added a commit that referenced this issue Aug 23, 2023
Overview

    The release adds an ability to use functions from `box.func` with
    the Tarantool Cartridge role.

Breaking changes

    None.

New features

    An ability to use persistent functions in `box.func` with
    cartridge. A user can configure the role with persistent functions
    as callback for a task (#153).
oleg-jukovec added a commit that referenced this issue Aug 23, 2023
Overview

    The release adds an ability to use functions from `box.func` with
    the Tarantool Cartridge role.

Breaking changes

    None.

New features

    An ability to use persistent functions in `box.func` with
    cartridge. A user can configure the role with persistent functions
    as callback for a task (#153).
oleg-jukovec added a commit that referenced this issue Aug 23, 2023
Overview

    The release adds an ability to use functions from `box.func` with
    the Tarantool Cartridge role.

Breaking changes

    None.

New features

    An ability to use persistent functions in `box.func` with
    cartridge. A user can configure the role with persistent functions
    as callback for a task (#153).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants