We have updated our Terms of Service, Code of Conduct, and Addendum.

Is it possible to get the worker id in an expression? Or make it available during processing?

Options
Erin Sweeney
Erin Sweeney Posts: 45 admin

Is it possible to get the worker id in an expression? Or somehow make it available during pipeline processing?

Best Answer

  • Brendan Dalpe
    Brendan Dalpe Posts: 201 mod
    Answer ✓
    Options

    You can get the Worker ID through the CRIBL_WORKER_ID environment variable. In your JavaScript expression, you can obtain this value by using this syntax: C.env.CRIBL_WORKER_ID

Answers

  • Brendan Dalpe
    Brendan Dalpe Posts: 201 mod
    Answer ✓
    Options

    You can get the Worker ID through the CRIBL_WORKER_ID environment variable. In your JavaScript expression, you can obtain this value by using this syntax: C.env.CRIBL_WORKER_ID