Skip to content

Commit 3c28891

Browse files
committed
libjob: support emoji jobid encoding
Problem: libjob does not support encoding flux_jobid_t to emoji. Add an "emoji" encoding that uses FLUX_STRING_EMOJI to encode flux_jobid_t as a string of emoji using the basemoji implementation.
1 parent 2a01426 commit 3c28891

File tree

1 file changed

+2
-0
lines changed
  • src/common/libjob

1 file changed

+2
-0
lines changed

src/common/libjob/id.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ int flux_job_id_encode (flux_jobid_t id,
8888
t = FLUID_STRING_MNEMONIC;
8989
else if (strcasecmp (type, "f58") == 0)
9090
t = FLUID_STRING_F58;
91+
else if (strcasecmp (type, "emoji") == 0)
92+
t = FLUID_STRING_EMOJI;
9193
else {
9294
/* Return EPROTO for invalid type to differentiate from
9395
* other invalid arguments.

0 commit comments

Comments
 (0)